Refactor key release handling in NACT commands

This commit is contained in:
kichikuou
2025-11-27 08:49:51 +09:00
parent fe17265cfb
commit ad73ed9271
6 changed files with 16 additions and 72 deletions
+5
View File
@@ -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();