mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +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 */
|
KEYBOARD_DRIVER *keyboard_driver = NULL; /* the active driver */
|
||||||
|
|
||||||
int _keyboard_installed = FALSE;
|
int _keyboard_installed = FALSE;
|
||||||
@ -493,8 +498,10 @@ void _handle_key_release(int scancode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ASSERT(scancode < KEY_MAX);
|
ASSERT(scancode < KEY_MAX);
|
||||||
if (scancode >= KEY_MAX)
|
if (scancode >= KEY_MAX) {
|
||||||
return;
|
TRACE(PREFIX_I "Scancode out of range %d\n", scancode);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((keyboard_driver->poll) || (!keyboard_polled)) {
|
if ((keyboard_driver->poll) || (!keyboard_polled)) {
|
||||||
/* process immediately */
|
/* process immediately */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user