From 689438666270cf5c239e5fa9ce062e3ae75367ca Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Mon, 18 Jan 2021 20:43:58 +0100 Subject: [PATCH] Change the default binding for P2/back from hyphen to backslash This is a workaround to make the hyphen key usable in text entry screens. It allows to add a hyphen to profile names and set a negative offset in edit mode. Technically backslash is also a typeable character, but it seems to be less common names in user names and not necessary for typing negative offsets. Fwiw, in outfox P2/back is unbound. --- src/InputMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InputMapper.cpp b/src/InputMapper.cpp index 33aaa361c6..2855481cdf 100644 --- a/src/InputMapper.cpp +++ b/src/InputMapper.cpp @@ -63,7 +63,7 @@ static const AutoMappings g_DefaultKeyMappings = AutoMappings( AutoMappingEntry( 0, KEY_KP_C2, GAME_BUTTON_MENUDOWN, true ), AutoMappingEntry( 0, KEY_KP_ENTER, GAME_BUTTON_START, true ), AutoMappingEntry( 0, KEY_KP_C0, GAME_BUTTON_SELECT, true ), - AutoMappingEntry( 0, KEY_HYPHEN, GAME_BUTTON_BACK, true ), // laptop keyboards. + AutoMappingEntry( 0, KEY_BACKSLASH, GAME_BUTTON_BACK, true ), // laptop keyboards. AutoMappingEntry( 0, KEY_F1, GAME_BUTTON_COIN, false ), AutoMappingEntry( 0, KEY_SCRLLOCK, GAME_BUTTON_OPERATOR, false ) );