aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wii/osystem_events.cpp
diff options
context:
space:
mode:
authorAndre Heider2009-09-18 18:56:16 +0000
committerAndre Heider2009-09-18 18:56:16 +0000
commit3e24220a19005a0c53ed436ded721ee77bc68e7f (patch)
treea258a179f17f162f89f8e9b9778f9227215fbc31 /backends/platform/wii/osystem_events.cpp
parente1ad748f0d7802ea0e6772c14546117b75c60220 (diff)
downloadscummvm-rg350-3e24220a19005a0c53ed436ded721ee77bc68e7f.tar.gz
scummvm-rg350-3e24220a19005a0c53ed436ded721ee77bc68e7f.tar.bz2
scummvm-rg350-3e24220a19005a0c53ed436ded721ee77bc68e7f.zip
Moved the Wii gfx code to its own library. Added a onscreen console for stdout/err, toggable via pad keys.
svn-id: r44189
Diffstat (limited to 'backends/platform/wii/osystem_events.cpp')
-rw-r--r--backends/platform/wii/osystem_events.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/platform/wii/osystem_events.cpp b/backends/platform/wii/osystem_events.cpp
index e45ee8dd25..9f00528839 100644
--- a/backends/platform/wii/osystem_events.cpp
+++ b/backends/platform/wii/osystem_events.cpp
@@ -24,6 +24,7 @@
#include "osystem.h"
+#include <ogc/lwp_watchdog.h>
#ifndef GAMECUBE
#include <wiiuse/wpad.h>
#endif
@@ -31,8 +32,6 @@
#include <wiikeyboard/keyboard.h>
#endif
-#include <ogc/lwp_watchdog.h>
-
#define TIMER_THREAD_STACKSIZE (1024 * 32)
#define TIMER_THREAD_PRIO 64
@@ -322,6 +321,12 @@ bool OSystem_Wii::pollEvent(Common::Event &event) {
if (bh & PADS_UP) {
PAD_EVENT(PADS_START, Common::KEYCODE_F5, Common::ASCII_F5,
Common::KBD_CTRL);
+
+ if (bd & PADS_R) {
+ _consoleVisible = !_consoleVisible;
+ return false;
+ }
+
flags = Common::KBD_SHIFT;
}