mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-09 15:19:53 +03:00
Refactor key release handling in NACT commands
This commit is contained in:
@@ -143,6 +143,11 @@ uint8 NACT::get_key()
|
||||
return val;
|
||||
}
|
||||
|
||||
void NACT::wait_key_release(uint8_t mask) {
|
||||
while (!terminate && (get_key() & mask))
|
||||
sys_sleep(16);
|
||||
}
|
||||
|
||||
void NACT::get_cursor(int* x, int* y)
|
||||
{
|
||||
pump_events();
|
||||
|
||||
Reference in New Issue
Block a user