mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-07 06:07:57 +03:00
Right-click exits selection without waiting for button up
This fixes https://github.com/kichikuou/xsystem35-sdl2/issues/56.
This commit is contained in:
+3
-1
@@ -460,7 +460,9 @@ void sel_select() {
|
|||||||
while (!nact->is_quit) {
|
while (!nact->is_quit) {
|
||||||
key = sys_keywait(25, KEYWAIT_CANCELABLE);
|
key = sys_keywait(25, KEYWAIT_CANCELABLE);
|
||||||
|
|
||||||
if (!key && prevkey == SYS35KEY_SPC) break;
|
// Right-click exits the menu without waiting for button up.
|
||||||
|
if (key == SYS35KEY_SPC) break;
|
||||||
|
|
||||||
if (!key && prevkey == SYS35KEY_RET && curElement != -1) break;
|
if (!key && prevkey == SYS35KEY_RET && curElement != -1) break;
|
||||||
prevkey = key;
|
prevkey = key;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user