From 5b84d7421f44c8bc00999071f2b3d46d238a9946 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 23 Jan 2025 21:49:07 +0100 Subject: Fix controller double click not working sometimes --- include/GlobalHotkeysJoystick.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/GlobalHotkeysJoystick.hpp') diff --git a/include/GlobalHotkeysJoystick.hpp b/include/GlobalHotkeysJoystick.hpp index 367de18..69f66df 100644 --- a/include/GlobalHotkeysJoystick.hpp +++ b/include/GlobalHotkeysJoystick.hpp @@ -3,6 +3,7 @@ #include "GlobalHotkeys.hpp" #include "Hotplug.hpp" #include +#include #include #include #include @@ -45,7 +46,7 @@ namespace gsr { int event_index = -1; mgl::Clock double_click_clock; - int num_times_clicked = 0; + std::optional prev_time_clicked; bool save_replay = false; int hotplug_poll_index = -1; Hotplug hotplug; -- cgit v1.2.3