summaryrefslogtreecommitdiff
path: root/src/input/inputactionmap.h
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-24 13:29:55 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-24 13:29:55 +0200
commitfae5ba054cf9b82da218cfc4df7686f13d3107d3 (patch)
tree347159ce0b72e6b21cd14450418997cc496746ad /src/input/inputactionmap.h
parentfb95def24c42392fe79b6ab672b5a6edc7210195 (diff)
downloadmanaverse-fae5ba054cf9b82da218cfc4df7686f13d3107d3.tar.gz
manaverse-fae5ba054cf9b82da218cfc4df7686f13d3107d3.tar.bz2
manaverse-fae5ba054cf9b82da218cfc4df7686f13d3107d3.tar.xz
manaverse-fae5ba054cf9b82da218cfc4df7686f13d3107d3.zip
switch: add escape button (+)
switch: change default screen size
Diffstat (limited to 'src/input/inputactionmap.h')
-rw-r--r--src/input/inputactionmap.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index ba8830130..9a7983312 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -351,11 +351,15 @@ static const InputActionData inputActionData
Protected_false},
{"keyQuit",
addKey(SDLK_ESCAPE),
-#if defined(USE_SDL2) && defined(ANDROID)
+#if defined(USE_SDL2)
+#if defined(ANDROID)
addKey(SDLK_AC_BACK),
-#else // defined(USE_SDL2) && defined(ANDROID)
+#elif defined(__SWITCH__)
+ joystickButton(10),
+#else
emptyKey,
-#endif // defined(USE_SDL2) && defined(ANDROID)
+#endif
+#endif // defined(USE_SDL2)
Input::GRP_DEFAULT,
&Actions::quit,
InputAction::NO_VALUE, 50,
@@ -2779,11 +2783,15 @@ static const InputActionData inputActionData
Protected_false},
{"keyGUICancel",
addKey(SDLK_ESCAPE),
-#if defined(USE_SDL2) && defined(ANDROID)
+#if defined(USE_SDL2)
+#if defined(ANDROID)
addKey(SDLK_AC_BACK),
-#else // defined(USE_SDL2) && defined(ANDROID)
+#elif defined(__SWITCH__)
+ joystickButton(10),
+#else
emptyKey,
-#endif // defined(USE_SDL2) && defined(ANDROID)
+#endif
+#endif // defined(USE_SDL2)
Input::GRP_GUICHAN,
nullptr,
InputAction::NO_VALUE, 50,