summaryrefslogtreecommitdiffhomepage
path: root/src/rinput.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-08-30 23:18:38 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-08-30 23:44:50 +0100
commit464c9398ae49d8faae46f81fb7040155408858f7 (patch)
tree3c8f035e752124a7f9f32179fa01d5c56c9d2439 /src/rinput.c
parent8a1c4de9b33128c10378f1938d8a60c071f01ad0 (diff)
Perform very minor load/unload optimisations
Because why not.
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,