From 452ab7491fec1b934e31d9763a8397a6cd039139 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Thu, 4 Oct 2012 01:46:38 +0200 Subject: [PATCH] Fixed getButtonPress --- Wii.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Wii.cpp b/Wii.cpp index fbf2e7f9..6a9ebcb0 100644 --- a/Wii.cpp +++ b/Wii.cpp @@ -772,11 +772,7 @@ void WII::checkMotionPresent() { /************************************************************/ bool WII::getButtonPress(Button b) { // Return true when a button is pressed - bool press = (ButtonState & (uint32_t)b); - if(b == Z || b == C) - return !press; // The nunchuck buttons are cleared when pressed - else - return press; + return (ButtonState & (uint32_t)b); } bool WII::getButtonClick(Button b) { // Only return true when a button is clicked bool click = (ButtonClickState & (uint32_t)b);