aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/wii/osystem_events.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/platform/wii/osystem_events.cpp b/backends/platform/wii/osystem_events.cpp
index ac7225e39c..c90063ff14 100644
--- a/backends/platform/wii/osystem_events.cpp
+++ b/backends/platform/wii/osystem_events.cpp
@@ -276,13 +276,13 @@ bool OSystem_Wii::pollEvent(Common::Event &event) {
return true;
}
- u32 bd, bh, bu;
+ u32 bd = 0, bh = 0, bu = 0;
- PAD_ScanPads();
-
- bd = PAD_ButtonsDown(0);
- bh = PAD_ButtonsHeld(0);
- bu = PAD_ButtonsUp(0);
+ if (PAD_ScanPads() & 1) {
+ bd = PAD_ButtonsDown(0);
+ bh = PAD_ButtonsHeld(0);
+ bu = PAD_ButtonsUp(0);
+ }
#ifndef GAMECUBE
WPAD_ScanPads();