diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-22 17:21:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 17:21:39 +0200 |
commit | b182fa4bb89a770d2e34da162eb46cdbaceb153b (patch) | |
tree | b641e2e0a9dc0edddae8e09d04660c13936798c2 /src/core/Pad.cpp | |
parent | README 64-bit preparation (diff) | |
parent | Peds, Hud, CFO 1/2, fixes - including zone names (diff) | |
download | re3-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.cpp | 5 |
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; |