fix backspace key on OS X

svn-id: r5887
This commit is contained in:
Max Horn 2002-12-08 19:43:11 +00:00
parent bdd479f47d
commit 4dc93957da

View File

@ -4577,7 +4577,11 @@ void SimonState::delay(uint amount)
if (event.kbd.keycode == 'f')
_fast_mode ^= 1;
}
_key_pressed = (byte)event.kbd.ascii;
// Make sure backspace works right (this fixes a small issue on OS X)
if (event.kbd.keycode == 8)
_key_pressed = 8;
else
_key_pressed = (byte)event.kbd.ascii;
break;
case OSystem::EVENT_MOUSEMOVE: