treating back button as escape

This commit is contained in:
Martin Felis
2013-12-13 02:03:39 +01:00
parent 17c3910d84
commit d3c987e31c
+4
View File
@@ -618,6 +618,10 @@ std::map<SDL_Keycode, love::keyboard::Keyboard::Key> Event::createKeyMap()
k[SDLK_EJECT] = Keyboard::KEY_EJECT;
k[SDLK_SLEEP] = Keyboard::KEY_SLEEP;
#ifdef __ANDROID__
k[SDLK_AC_BACK] = Keyboard::KEY_ESCAPE;
#endif
return k;
}