diff options
author | D G Turner | 2014-04-29 00:35:17 +0100 |
---|---|---|
committer | D G Turner | 2014-05-05 05:18:51 +0100 |
commit | 7042de2aa9ce75b5b16837bf23c229572b464ce8 (patch) | |
tree | 8d45bc2ffb3ebbac9b7cf74b37436d8e39a4abf1 | |
parent | 8472835963b72e28d95df470f4bf847df4bc7f29 (diff) | |
download | scummvm-rg350-7042de2aa9ce75b5b16837bf23c229572b464ce8.tar.gz scummvm-rg350-7042de2aa9ce75b5b16837bf23c229572b464ce8.tar.bz2 scummvm-rg350-7042de2aa9ce75b5b16837bf23c229572b464ce8.zip |
WII: Fix correct keycode for virtual keyboard trigger.
As the virtual keyboard trigger has been moved to CTRL-F7, the previous
code which generates a unmodified F7 event to do this will not work.
However, due to the complexity of this code, directly calling the
virtual keyboard trigger event could have side effects, so have instead
just added the CTRL modifier to fix this.
This should be fixed if possible to use EVENT_VIRTUAL_KEYBOARD.
-rw-r--r-- | backends/platform/wii/osystem_events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/wii/osystem_events.cpp b/backends/platform/wii/osystem_events.cpp index 2da1d80917..0563639de3 100644 --- a/backends/platform/wii/osystem_events.cpp +++ b/backends/platform/wii/osystem_events.cpp @@ -357,8 +357,8 @@ bool OSystem_Wii::pollEvent(Common::Event &event) { PAD_EVENT(PADS_Y, Common::KEYCODE_PERIOD, '.', flags); PAD_EVENT(PADS_START, Common::KEYCODE_F5, Common::ASCII_F5, flags); PAD_EVENT(PADS_UP, Common::KEYCODE_LSHIFT, 0, flags); - PAD_EVENT(PADS_DOWN, Common::KEYCODE_F7, Common::ASCII_F7, flags); - //PAD_EVENT(PADS_LEFT, Common::KEYCODE_F8, Common::ASCII_F8, 0); + PAD_EVENT(PADS_DOWN, Common::KEYCODE_F7, Common::ASCII_F7, Common::KBD_CTRL); + //PAD_EVENT(PADS_LEFT, Common::KEYCODE_F8, Common::ASCII_F8, Common::KBD_CTRL); if ((bd | bu) & (PADS_A | PADS_B)) { if (bd & PADS_A) |