diff options
author | Andre Heider | 2009-09-01 19:33:47 +0000 |
---|---|---|
committer | Andre Heider | 2009-09-01 19:33:47 +0000 |
commit | cf112f9a433e98edd0e529a03bb20033fa3e15db (patch) | |
tree | ca1d165c33d64d8db7843691854a19a9f6514aa8 /backends/platform/wii/osystem_events.cpp | |
parent | a191728945cbbfe14276140e33c74bf943b86262 (diff) | |
download | scummvm-rg350-cf112f9a433e98edd0e529a03bb20033fa3e15db.tar.gz scummvm-rg350-cf112f9a433e98edd0e529a03bb20033fa3e15db.tar.bz2 scummvm-rg350-cf112f9a433e98edd0e529a03bb20033fa3e15db.zip |
Added an options dialog for some Wii specific settings.
svn-id: r43892
Diffstat (limited to 'backends/platform/wii/osystem_events.cpp')
-rw-r--r-- | backends/platform/wii/osystem_events.cpp | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/backends/platform/wii/osystem_events.cpp b/backends/platform/wii/osystem_events.cpp index e8b25b3e7f..e45ee8dd25 100644 --- a/backends/platform/wii/osystem_events.cpp +++ b/backends/platform/wii/osystem_events.cpp @@ -319,36 +319,19 @@ bool OSystem_Wii::pollEvent(Common::Event &event) { if (bd || bu) { byte flags = 0; - // TODO: add this to an option dialog - if (bh & PADS_R) { - static u16 vpo_x = 0; - static u16 vpo_y = 0; - - if (bd & PADS_LEFT) - vpo_x = (vpo_x - 1) % 32; - - if (bd & PADS_RIGHT) - vpo_x = (vpo_x + 1) % 32; - - if (bd & PADS_UP) - vpo_y = (vpo_y - 1) % 32; - - if (bd & PADS_DOWN) - vpo_y = (vpo_y + 1) % 32; - - gfx_set_underscan(vpo_x, vpo_y); - return false; - } - if (bh & PADS_UP) { - PAD_EVENT(PADS_START, Common::KEYCODE_F5, Common::ASCII_F5, Common::KBD_CTRL); - + PAD_EVENT(PADS_START, Common::KEYCODE_F5, Common::ASCII_F5, + Common::KBD_CTRL); flags = Common::KBD_SHIFT; } + if (bd & PADS_R) { + showOptionsDialog(); + return false; + } + if (bd & PADS_RIGHT) { event.type = Common::EVENT_PREDICTIVE_DIALOG; - return true; } |