Add option to check for mouse button press

Implemented only for Windows for now.
This commit is contained in:
WarmUpTill
2022-12-18 15:26:16 +01:00
committed by WarmUpTill
parent f7afb9c446
commit ea826f1be0
10 changed files with 238 additions and 48 deletions

View File

@@ -1,9 +1,15 @@
#pragma once
#include "hotkey.hpp"
#include <vector>
#include <string>
#include <QStringList>
#include <chrono>
enum class HotkeyType;
// TODO: Implement for MacOS and Linux
extern std::chrono::high_resolution_clock::time_point lastMouseLeftClickTime;
extern std::chrono::high_resolution_clock::time_point lastMouseMiddleClickTime;
extern std::chrono::high_resolution_clock::time_point lastMouseRightClickTime;
void GetWindowList(std::vector<std::string> &windows);
void GetWindowList(QStringList &windows);