summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-07-24 20:07:23 +0200
committerGitHub <noreply@github.com>2020-07-24 20:07:23 +0200
commitb05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda (patch)
tree929528298d437e2868071683228743f47accc173 /src/skel/win/win.cpp
parentMerge pull request #661 from erorcun/miami (diff)
parent90% fixes, 10% skel refactoring (diff)
downloadre3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.tar
re3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.tar.gz
re3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.tar.bz2
re3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.tar.lz
re3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.tar.xz
re3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.tar.zst
re3-b05cb3f1a3a1a5fbc18efe78a58e1408a1f2ffda.zip
Diffstat (limited to 'src/skel/win/win.cpp')
-rw-r--r--src/skel/win/win.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index f8e5c38e..a2673ccb 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -2883,8 +2883,13 @@ void _InputShutdownMouse()
SAFE_RELEASE(PSGLOBAL(mouse));
}
-BOOL _InputMouseNeedsExclusive(void)
+bool _InputMouseNeedsExclusive(void)
{
+ // FIX: I don't know why R* needed that, but it causes infamous mouse bug on modern systems.
+ // Probably DirectInput bug, since Acquire() and GetDeviceState() reports everything A-OK.
+#ifdef FIX_BUGS
+ return false;
+#endif
RwVideoMode vm;
RwEngineGetVideoModeInfo(&vm, GcurSelVM);