diff options
author | D G Turner | 2014-04-29 00:34:17 +0100 |
---|---|---|
committer | D G Turner | 2014-04-29 00:34:17 +0100 |
commit | 8472835963b72e28d95df470f4bf847df4bc7f29 (patch) | |
tree | 77a9ea6e6e5ff4d1067de560de41f7ab47b875db | |
parent | aafc17ed1e2e3ff13d43d024e00c1628b1f365a4 (diff) | |
download | scummvm-rg350-8472835963b72e28d95df470f4bf847df4bc7f29.tar.gz scummvm-rg350-8472835963b72e28d95df470f4bf847df4bc7f29.tar.bz2 scummvm-rg350-8472835963b72e28d95df470f4bf847df4bc7f29.zip |
TIZEN: Use virtual keyboard event directly, rather than using keycode.
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.
Rather than just adding the CTRL modifier, this code changes the
backend to directly generate the virtual keyboard trigger event
directly. This avoids any future breakage if the key combination is
changed again.
-rw-r--r-- | backends/platform/tizen/form.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/platform/tizen/form.cpp b/backends/platform/tizen/form.cpp index 3f7b918102..568829dc96 100644 --- a/backends/platform/tizen/form.cpp +++ b/backends/platform/tizen/form.cpp @@ -338,7 +338,14 @@ void TizenAppForm::showKeypad() { // display the soft keyboard if (_state == kActiveState) { _buttonState = kLeftButton; - pushKey(Common::KEYCODE_F7); + + Common::Event e; + e.type = Common::EVENT_VIRTUAL_KEYBOARD; + if (_eventQueueLock) { + _eventQueueLock->Acquire(); + _eventQueue.push(e); + _eventQueueLock->Release(); + } } } |