diff options
-rw-r--r-- | backends/platform/ds/arm9/source/touchkeyboard.cpp | 4 | ||||
-rw-r--r-- | common/events.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/ds/arm9/source/touchkeyboard.cpp b/backends/platform/ds/arm9/source/touchkeyboard.cpp index 88e78f165c..931f9a716a 100644 --- a/backends/platform/ds/arm9/source/touchkeyboard.cpp +++ b/backends/platform/ds/arm9/source/touchkeyboard.cpp @@ -117,7 +117,7 @@ key_data keys[DS_NUM_KEYS] = { {51, 29, 6, Common::KEYCODE_UP}, // Close button - {56, 30, 0, 0}, + {56, 30, 0, Common::KEYCODE_INALID}, }; @@ -237,7 +237,7 @@ void addKeyboardEvents() { Common::Event event; // consolePrintf("Key: %d\n", r); - if ((keys[r].character == 0)) { + if ((keys[r].character == Common::KEYCODE_INALID)) { // Close button DS::closed = true; } else if ((keys[r].character >= '0') && (keys[r].character <= '9')) { diff --git a/common/events.h b/common/events.h index bfbe48e9e5..39c7ad49e8 100644 --- a/common/events.h +++ b/common/events.h @@ -68,6 +68,8 @@ enum EventType { }; enum KeyCode { + KEYCODE_INALID = 0, + KEYCODE_BACKSPACE = 8, KEYCODE_TAB = 9, KEYCODE_CLEAR = 12, |