mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-28 18:08:03 +03:00
Touch support
This commit is contained in:
@@ -189,15 +189,15 @@ int NACT::menu_select(int num_items)
|
||||
if(terminate) {
|
||||
return -1;
|
||||
}
|
||||
if(val = get_key()) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
get_cursor(¤t_mx, ¤t_my);
|
||||
int dx = mx - current_mx;
|
||||
int dy = my - current_my;
|
||||
if (dx*dx + dy*dy > 10)
|
||||
break;
|
||||
if(val = get_key()) {
|
||||
SDL_Delay(100);
|
||||
break;
|
||||
}
|
||||
SDL_Delay(16);
|
||||
}
|
||||
if(val) {
|
||||
|
||||
Reference in New Issue
Block a user