mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Add asserts to _al_win_kbd_handle* functions().
This commit is contained in:
parent
177f089e9a
commit
24c2bf40e3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user