Add asserts to _al_win_kbd_handle* functions().

This commit is contained in:
David Capello 2010-11-01 21:05:54 -03:00
parent 177f089e9a
commit 24c2bf40e3

View File

@ -150,6 +150,8 @@ void _al_win_kbd_handle_key_press(int scode, int vcode, BOOL repeated)
if (vcode == VK_CAPITAL && repeated && key[KEY_CAPSLOCK])
return;
ASSERT(vcode >= 0 && vcode < 256);
mycode = hw_to_mycode[vcode];
_handle_key_press(ccode, mycode);
}
@ -169,6 +171,8 @@ void _al_win_kbd_handle_key_release(int vcode)
return;
}
ASSERT(vcode >= 0 && vcode < 256);
mycode = hw_to_mycode[vcode];
_handle_key_release(mycode);
}