mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 10:58:07 +03:00
Tweak selection
This commit is contained in:
@@ -194,9 +194,10 @@ int NACT::menu_select(int num_items)
|
||||
break;
|
||||
}
|
||||
get_cursor(¤t_mx, ¤t_my);
|
||||
if(abs(my - current_my) > 3) {
|
||||
int dx = mx - current_mx;
|
||||
int dy = my - current_my;
|
||||
if (dx*dx + dy*dy > 10)
|
||||
break;
|
||||
}
|
||||
SDL_Delay(16);
|
||||
}
|
||||
if(val) {
|
||||
|
||||
Reference in New Issue
Block a user