From 2a91f682b556ceac3e6f28705a8d2e66ee6a936c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 3 Mar 2020 17:56:33 -0800 Subject: [PATCH] Fixed bug 5012 - KaiOS keycodes support pelya KaiOS is an OS for feature phones, with numeric keypad and non-touch screen, and typically 512 Mb RAM and 4 Gb flash. It is based on Firefox OS, all apps are made with HTML5 and Javascript. SDL can be cross-compiled using emscripten and packaged as native app. This patch adds support for star '*' and pound '#' keys on such phones to generate SDL events. --- src/video/emscripten/SDL_emscriptenevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/emscripten/SDL_emscriptenevents.c b/src/video/emscripten/SDL_emscriptenevents.c index 687c24e45d6eb..14ebc1763bd90 100644 --- a/src/video/emscripten/SDL_emscriptenevents.c +++ b/src/video/emscripten/SDL_emscriptenevents.c @@ -206,14 +206,14 @@ static const SDL_Scancode emscripten_scancode_table[] = { /* 160 */ SDL_SCANCODE_UNKNOWN, /* 161 */ SDL_SCANCODE_UNKNOWN, /* 162 */ SDL_SCANCODE_UNKNOWN, - /* 163 */ SDL_SCANCODE_UNKNOWN, + /* 163 */ SDL_SCANCODE_KP_HASH, /*KaiOS phone keypad*/ /* 164 */ SDL_SCANCODE_UNKNOWN, /* 165 */ SDL_SCANCODE_UNKNOWN, /* 166 */ SDL_SCANCODE_UNKNOWN, /* 167 */ SDL_SCANCODE_UNKNOWN, /* 168 */ SDL_SCANCODE_UNKNOWN, /* 169 */ SDL_SCANCODE_UNKNOWN, - /* 170 */ SDL_SCANCODE_UNKNOWN, + /* 170 */ SDL_SCANCODE_KP_MULTIPLY, /*KaiOS phone keypad*/ /* 171 */ SDL_SCANCODE_UNKNOWN, /* 172 */ SDL_SCANCODE_UNKNOWN, /* 173 */ SDL_SCANCODE_MINUS, /*FX*/