mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
js: Don't treat SoftRight as CURSOR_SELECT2
I was hoping that I could treat SoftLeft and SoftRight the same in C and arrange to filter one of them out in JavaScript, but that turned out to be impractical.
This commit is contained in:
4
emcc.c
4
emcc.c
@ -317,8 +317,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") || !strnullcmp(key, "SoftRight"))
|
else if (!strnullcmp(key, "SoftLeft"))
|
||||||
/* Left and right soft key on KaiOS. */
|
/* Left 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