summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-04-09 01:52:38 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-04-09 01:52:38 +0200
commit37691701138c8a458bc8b41944745000d27a3b83 (patch)
treebcfad8fa942aef410f6a4ad066da7a63d8a49ed8 /src/core/Pad.cpp
parentFix target sprite size (diff)
downloadre3-37691701138c8a458bc8b41944745000d27a3b83.tar
re3-37691701138c8a458bc8b41944745000d27a3b83.tar.gz
re3-37691701138c8a458bc8b41944745000d27a3b83.tar.bz2
re3-37691701138c8a458bc8b41944745000d27a3b83.tar.lz
re3-37691701138c8a458bc8b41944745000d27a3b83.tar.xz
re3-37691701138c8a458bc8b41944745000d27a3b83.tar.zst
re3-37691701138c8a458bc8b41944745000d27a3b83.zip
Diffstat (limited to '')
-rw-r--r--src/core/Pad.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index 6bbe00f2..2d2b132c 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -34,6 +34,7 @@ CMousePointerStateHelper &MousePointerStateHelper = *(CMousePointerStateHelper*)
bool &CPad::bDisplayNoControllerMessage = *(bool *)0x95CD52;
bool &CPad::bObsoleteControllerMessage = *(bool *)0x95CDB8;
+bool CPad::bOldDisplayNoControllerMessage;
bool &CPad::m_bMapPadOneToPadTwo = *(bool *)0x95CD48;
CKeyboardState &CPad::OldKeyState = *(CKeyboardState*)0x6F1E70;
@@ -137,6 +138,19 @@ void CKeyboardState::Clear()
LWIN = RWIN = APPS = 0;
}
+void CPad::Initialise(void)
+{
+ for (int i = 0; i < MAX_PADS; i++)
+ {
+ CPad::GetPad(i)->Clear(true);
+ CPad::GetPad(i)->Mode = 0;
+ }
+
+ bObsoleteControllerMessage = false;
+ bOldDisplayNoControllerMessage = false;
+ bDisplayNoControllerMessage = false;
+}
+
void CPad::Clear(bool bResetPlayerControls)
{
NewState.Clear();