Fix #7940 (analog test screen). "Debounce" doubleclicks.

This commit is contained in:
Henrik Rydgard 2015-09-07 22:25:38 +02:00
parent dbf53ab584
commit 53e80d7f54
2 changed files with 4 additions and 1 deletions

View file

@ -433,6 +433,7 @@ bool AnalogTestScreen::key(const KeyInput &key) {
}
bool AnalogTestScreen::axis(const AxisInput &axis) {
UIScreen::axis(axis);
// This is mainly to catch axis events that would otherwise get translated
// into arrow keys, since seeing keyboard arrow key events appear when using
// a controller would be confusing for the user.

View file

@ -1018,8 +1018,10 @@ namespace MainWindow
if (!g_Config.bShowTouchControls && GetUIState() == UISTATE_INGAME) {
PostMessage(hwndMain, WM_USER_TOGGLE_FULLSCREEN, 0, 0);
}
lastMouseDown = 0.0;
} else {
lastMouseDown = real_time_now();
}
lastMouseDown = real_time_now();
}
break;