diff options
Diffstat (limited to 'include/GlobalHotkeysJoystick.hpp')
-rw-r--r-- | include/GlobalHotkeysJoystick.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <unordered_map> +#include <optional> #include <thread> #include <poll.h> #include <mglpp/system/Clock.hpp> @@ -45,7 +46,7 @@ namespace gsr { int event_index = -1; mgl::Clock double_click_clock; - int num_times_clicked = 0; + std::optional<double> prev_time_clicked; bool save_replay = false; int hotplug_poll_index = -1; Hotplug hotplug; |