File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 21
21
#include < thread>
22
22
#include < vector>
23
23
#include < inttypes.h>
24
+ #include " uiohook.h"
24
25
26
+ #ifdef WIN32
25
27
class ForeignWorker {
26
28
private:
27
29
uv_async_t * async;
@@ -123,14 +125,7 @@ struct ThreadData {
123
125
} gThreadData ;
124
126
125
127
static bool isKeyDown (key_t k) {
126
- #if defined(_WIN32)
127
- // Windows is incredibly simple, this allows us to query a key without any hooks.
128
128
return (bool )(GetAsyncKeyState (k) >> 15 );
129
- #elif defined(_MACOS) || defined(_MACOSX)
130
-
131
- #elif defined(_LINUX) || defined(_GNU)
132
-
133
- #endif
134
129
}
135
130
136
131
static int32_t HotKeyThread (void * arg) {
@@ -546,5 +541,5 @@ void UnregisterHotkeysJS(const v8::FunctionCallbackInfo<v8::Value>& args) {
546
541
std::unique_lock<std::mutex> ulock (gThreadData .mtx );
547
542
gThreadData .hotkeys .clear ();
548
543
}
549
-
544
+ # endif
550
545
You can’t perform that action at this time.
0 commit comments