diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-08-16 16:10:59 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-08-16 16:10:59 +0200 |
commit | 980dd1b5a17440e9a272b7b47ad3553cd1ce11ff (patch) | |
tree | f0bc6cfc1030f3eaf25c53b4e22db3717fc49074 /src/core/Pad.h | |
parent | Merge branch 'master' into miami (diff) | |
download | re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.gz re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.bz2 re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.lz re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.xz re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.tar.zst re3-980dd1b5a17440e9a272b7b47ad3553cd1ce11ff.zip |
Diffstat (limited to 'src/core/Pad.h')
-rw-r--r-- | src/core/Pad.h | 4 |
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); |