summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-07-22 17:21:39 +0200
committerGitHub <noreply@github.com>2020-07-22 17:21:39 +0200
commitb182fa4bb89a770d2e34da162eb46cdbaceb153b (patch)
treeb641e2e0a9dc0edddae8e09d04660c13936798c2 /src/core/Pad.cpp
parentREADME 64-bit preparation (diff)
parentPeds, Hud, CFO 1/2, fixes - including zone names (diff)
downloadre3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar
re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.gz
re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.bz2
re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.lz
re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.xz
re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.tar.zst
re3-b182fa4bb89a770d2e34da162eb46cdbaceb153b.zip
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r--src/core/Pad.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 97cc1786..83930c41 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -39,6 +39,7 @@
#include "General.h"
#include "Fluff.h"
#include "Gangs.h"
+#include "platform.h"
#ifdef GTA_PS2
#include "eetypes.h"
@@ -671,7 +672,7 @@ CMouseControllerState CMousePointerStateHelper::GetMouseSetUp()
#if defined RW_D3D9 || defined RWLIBS
if ( PSGLOBAL(mouse) == nil )
- _InputInitialiseMouse();
+ _InputInitialiseMouse(!FrontEndMenuManager.m_bMenuActive && _InputMouseNeedsExclusive());
if ( PSGLOBAL(mouse) != nil )
{
@@ -725,7 +726,7 @@ void CPad::UpdateMouse()
{
#if defined RW_D3D9 || defined RWLIBS
if ( PSGLOBAL(mouse) == nil )
- _InputInitialiseMouse();
+ _InputInitialiseMouse(!FrontEndMenuManager.m_bMenuActive && _InputMouseNeedsExclusive());
DIMOUSESTATE2 state;