aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorlubomyr2016-10-23 14:00:25 +0300
committerlubomyr2016-10-23 14:00:25 +0300
commita0c2fca8e4d20480d6cca002240c4cbaccd181ee (patch)
tree7aab21778a73776c854cd44e70da3dcd4a85c63f /backends
parent74b3b45c61a41300c2e84201f813817eada27351 (diff)
downloadscummvm-rg350-a0c2fca8e4d20480d6cca002240c4cbaccd181ee.tar.gz
scummvm-rg350-a0c2fca8e4d20480d6cca002240c4cbaccd181ee.tar.bz2
scummvm-rg350-a0c2fca8e4d20480d6cca002240c4cbaccd181ee.zip
ANDROIDSDL: back button re-mapped to F13 keycode. F13 keycode assigned to call scummvm in-game menu. CONTROL key now can be uses with games
Diffstat (limited to 'backends')
-rw-r--r--backends/events/androidsdl/androidsdl-events.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backends/events/androidsdl/androidsdl-events.cpp b/backends/events/androidsdl/androidsdl-events.cpp
index c8a730aa8e..0adcff817e 100644
--- a/backends/events/androidsdl/androidsdl-events.cpp
+++ b/backends/events/androidsdl/androidsdl-events.cpp
@@ -66,9 +66,8 @@ bool AndroidSdlEventSource::handleMouseButtonDown(SDL_Event &ev, Common::Event &
bool AndroidSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
if (false) {}
- if (ev.key.keysym.sym == SDLK_LCTRL) {
- event.type = Common::EVENT_KEYDOWN;
- event.kbd.keycode = Common::KEYCODE_F5;
+ if (ev.key.keysym.sym == SDLK_F13) {
+ event.type = Common::EVENT_MAINMENU;
return true;
} else {
// Let the events fall through if we didn't change them, this may not be the best way to