summaryrefslogtreecommitdiffhomepage
path: root/src/rinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rinput.c')
-rw-r--r--src/rinput.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rinput.c b/src/rinput.c
index 79b6661..6b61bff 100644
--- a/src/rinput.c
+++ b/src/rinput.c
@@ -29,6 +29,7 @@
#include "hook.h"
#include "intdefs.h"
#include "mem.h"
+#include "sst.h"
#include "vcall.h"
FEATURE("scalable raw mouse input")
@@ -217,6 +218,7 @@ e0: UnregisterClassW(L"RInput", 0);
}
END {
+ if (!sst_userunloaded) return;
if (orig_SetCursorPos) { // if null, we didn't init our own implementation
RAWINPUTDEVICE rd = {
.dwFlags = RIDEV_REMOVE,