mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
js: Make SoftRight act as CURSOR_SELECT2 as well
This way, the front end can intercept one of SoftLeft and SoftRight as a menu key and leave the other one for the puzzle. And while we don't have a working menu, I can use whichever is more convenient.
This commit is contained in:
3
emcc.c
3
emcc.c
@ -301,7 +301,8 @@ bool key(int keycode, const char *key, const char *chr, int location,
|
|||||||
keyevent = CURSOR_RIGHT;
|
keyevent = CURSOR_RIGHT;
|
||||||
else if (!strnullcmp(key, "ArrowDown") || !strnullcmp(key, "Down"))
|
else if (!strnullcmp(key, "ArrowDown") || !strnullcmp(key, "Down"))
|
||||||
keyevent = CURSOR_DOWN;
|
keyevent = CURSOR_DOWN;
|
||||||
else if (!strnullcmp(key, "SoftLeft")) /* Left soft key on KaiOS */
|
else if (!strnullcmp(key, "SoftLeft") || !strnullcmp(key, "SoftRight"))
|
||||||
|
/* Left and right soft key on KaiOS. */
|
||||||
keyevent = CURSOR_SELECT2;
|
keyevent = CURSOR_SELECT2;
|
||||||
else if (!strnullcmp(key, "End"))
|
else if (!strnullcmp(key, "End"))
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user