summaryrefslogtreecommitdiffstats
path: root/src/core/Pad.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-06-20 15:23:32 +0200
committereray orçunus <erayorcunus@gmail.com>2020-06-20 15:23:32 +0200
commit0625954bb74e687ed73b496bc06e9db58407e045 (patch)
tree3ec342a96685889bf2512ececcfc76f1bdac14a0 /src/core/Pad.cpp
parentbikes in garages + bugfix (diff)
downloadre3-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.cpp8
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() )