summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-08 01:40:58 +0200
committerwithmorten <morten.with@gmail.com>2021-07-08 01:40:58 +0200
commitf9a2f1daf75d5235742917359d3ec10395d46bbc (patch)
tree00e4df185b9834b36a09fe22b6374854993e71b1 /src/control/Script.cpp
parentfix sampman_null build (diff)
downloadre3-f9a2f1daf75d5235742917359d3ec10395d46bbc.tar
re3-f9a2f1daf75d5235742917359d3ec10395d46bbc.tar.gz
re3-f9a2f1daf75d5235742917359d3ec10395d46bbc.tar.bz2
re3-f9a2f1daf75d5235742917359d3ec10395d46bbc.tar.lz
re3-f9a2f1daf75d5235742917359d3ec10395d46bbc.tar.xz
re3-f9a2f1daf75d5235742917359d3ec10395d46bbc.tar.zst
re3-f9a2f1daf75d5235742917359d3ec10395d46bbc.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 5598f3c9..1517ec52 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1770,8 +1770,9 @@ void CRunningScript::Init()
int scriptToLoad = 0;
#ifdef _WIN32
-#include <Windows.h>
+extern "C" __declspec(dllimport) short __stdcall GetAsyncKeyState(int);
#endif
+
int open_script()
{
// glfwGetKey doesn't work because of CGame::Initialise is blocking