summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-08-16 17:41:17 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-08-16 17:41:17 +0200
commitcc66df18acfa458d4e3b82c4bb677a4b218c599d (patch)
tree2b210f1318adf58db51e432eefcd188280b4c8ef /src/core/Pad.h
parentCarCtrl finished, minor Script things (diff)
parent2 new opcodes (diff)
downloadre3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.tar
re3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.tar.gz
re3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.tar.bz2
re3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.tar.lz
re3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.tar.xz
re3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.tar.zst
re3-cc66df18acfa458d4e3b82c4bb677a4b218c599d.zip
Diffstat (limited to 'src/core/Pad.h')
-rw-r--r--src/core/Pad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/Pad.h b/src/core/Pad.h
index 4374bc1a..72851317 100644
--- a/src/core/Pad.h
+++ b/src/core/Pad.h
@@ -141,9 +141,12 @@ public:
enum
{
HORNHISTORY_SIZE = 5,
+ DRUNK_STEERING_BUFFER_SIZE = 10,
};
CControllerState NewState;
CControllerState OldState;
+ int16 SteeringLeftRightBuffer[DRUNK_STEERING_BUFFER_SIZE];
+ int32 DrunkDrivingBufferUsed;
CControllerState PCTempKeyState;
CControllerState PCTempJoyState;
CControllerState PCTempMouseState;
@@ -263,6 +266,7 @@ public:
static char *EditString(char *pStr, int32 nSize);
static int32 *EditCodesForControls(int32 *pRsKeys, int32 nSize);
uint32 InputHowLongAgo(void);
+ void SetDrunkInputDelay(int32 delay) { DrunkDrivingBufferUsed = delay; }
#ifdef XINPUT
void AffectFromXinput(uint32 pad);