mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-03 20:38:13 +03:00
Advance messages by scrolling mouse wheel down
Now the 'A' command accepts mouse wheel down events in addition to keyboard and mouse buttons.
This commit is contained in:
+3
-1
@@ -410,12 +410,14 @@ void NACT::cmd_a()
|
||||
ags->draw_push(text_window);
|
||||
}
|
||||
|
||||
get_wheel(); // clear wheel input
|
||||
|
||||
// キーが押されて離されるまで待機
|
||||
while (!msgskip->skipping()) {
|
||||
if(terminate) {
|
||||
return;
|
||||
}
|
||||
if(get_key()) {
|
||||
if (get_key() || get_wheel() < 0) {
|
||||
break;
|
||||
}
|
||||
sys_sleep(16);
|
||||
|
||||
Reference in New Issue
Block a user