diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-06-20 15:23:32 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-06-20 15:23:32 +0200 |
commit | 0625954bb74e687ed73b496bc06e9db58407e045 (patch) | |
tree | 3ec342a96685889bf2512ececcfc76f1bdac14a0 /src/core/Pad.cpp | |
parent | bikes in garages + bugfix (diff) | |
download | re3-0625954bb74e687ed73b496bc06e9db58407e045.tar re3-0625954bb74e687ed73b496bc06e9db58407e045.tar.gz re3-0625954bb74e687ed73b496bc06e9db58407e045.tar.bz2 re3-0625954bb74e687ed73b496bc06e9db58407e045.tar.lz re3-0625954bb74e687ed73b496bc06e9db58407e045.tar.xz re3-0625954bb74e687ed73b496bc06e9db58407e045.tar.zst re3-0625954bb74e687ed73b496bc06e9db58407e045.zip |
Diffstat (limited to 'src/core/Pad.cpp')
-rw-r--r-- | src/core/Pad.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index ab66dd9b..084fe888 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -2336,6 +2336,14 @@ bool CPad::TargetJustDown(void) return false; } +bool CPad::DuckJustDown(void) +{ + if (ArePlayerControlsDisabled()) + return false; + + return !!(NewState.LeftShock && !OldState.LeftShock); +} + bool CPad::JumpJustDown(void) { if ( ArePlayerControlsDisabled() ) |