summaryrefslogtreecommitdiff
path: root/Pad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Pad.cpp')
-rw-r--r--Pad.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Pad.cpp b/Pad.cpp
index bb2a0ab..15a9092 100644
--- a/Pad.cpp
+++ b/Pad.cpp
@@ -19,7 +19,12 @@ bool PadButtonReleased(PAD_BUTTONS btn)
bool PadButtonPressed(PAD_BUTTONS btn)
{
- return gb.buttons.timeHeld(btn) > 0;
+ return PadButtonPressedFrames(btn, 0);
+}
+
+bool PadButtonPressedFrames(PAD_BUTTONS btn, uint8_t frames)
+{
+ return gb.buttons.timeHeld(btn) > frames;
}
bool PadDirectionKeyPressed(void)