Skip to content

Commit e175dad

Browse files
committed
Comment out Windows code to build
1 parent 698ff00 commit e175dad

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

source/hook.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
#include <thread>
2222
#include <vector>
2323
#include <inttypes.h>
24+
#include "uiohook.h"
2425

26+
#ifdef WIN32
2527
class ForeignWorker {
2628
private:
2729
uv_async_t * async;
@@ -123,14 +125,7 @@ struct ThreadData {
123125
} gThreadData;
124126

125127
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.
128128
return (bool)(GetAsyncKeyState(k) >> 15);
129-
#elif defined(_MACOS) || defined(_MACOSX)
130-
131-
#elif defined(_LINUX) || defined(_GNU)
132-
133-
#endif
134129
}
135130

136131
static int32_t HotKeyThread(void* arg) {
@@ -546,5 +541,5 @@ void UnregisterHotkeysJS(const v8::FunctionCallbackInfo<v8::Value>& args) {
546541
std::unique_lock<std::mutex> ulock(gThreadData.mtx);
547542
gThreadData.hotkeys.clear();
548543
}
549-
544+
#endif
550545

0 commit comments

Comments
 (0)