fix DeviceInput::ToChar for delete

This commit is contained in:
Glenn Maynard
2005-12-09 02:17:38 +00:00
parent 473b080ef9
commit 81f38d89c3
+1 -1
View File
@@ -346,7 +346,7 @@ char DeviceInput::ToChar() const
switch( device )
{
case DEVICE_KEYBOARD:
if( button < 128 )
if( button < 127 )
return (char) button;
if( button >= KEY_KP_C0 && button <= KEY_KP_C9 )