mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Trace unknown scancodes in allegro/src/keyboard.c
This commit is contained in:
parent
72036f417c
commit
f0802ed766
@ -21,6 +21,11 @@
|
||||
|
||||
|
||||
|
||||
#define PREFIX_I "al-keyboard INFO: "
|
||||
#define PREFIX_W "al-keyboard WARNING: "
|
||||
#define PREFIX_E "al-keyboard ERROR: "
|
||||
|
||||
|
||||
KEYBOARD_DRIVER *keyboard_driver = NULL; /* the active driver */
|
||||
|
||||
int _keyboard_installed = FALSE;
|
||||
@ -493,8 +498,10 @@ void _handle_key_release(int scancode)
|
||||
}
|
||||
|
||||
ASSERT(scancode < KEY_MAX);
|
||||
if (scancode >= KEY_MAX)
|
||||
return;
|
||||
if (scancode >= KEY_MAX) {
|
||||
TRACE(PREFIX_I "Scancode out of range %d\n", scancode);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((keyboard_driver->poll) || (!keyboard_polled)) {
|
||||
/* process immediately */
|
||||
|
Loading…
Reference in New Issue
Block a user