From 26199dc2848c3b6390fb93e9b425b98b83cae0a6 Mon Sep 17 00:00:00 2001 From: SinnamonLat Date: Fri, 20 May 2022 01:28:09 +0200 Subject: [PATCH] Add enter and esc for menu navigation on default profile --- src/g_input.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/g_input.c b/src/g_input.c index cf33b2b78..6263f9379 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -553,7 +553,7 @@ void G_DefineDefaultControls(void) gamecontroldefault[gc_z ][0] = 'd'; gamecontroldefault[gc_l ][0] = 'q'; gamecontroldefault[gc_r ][0] = 'e'; - gamecontroldefault[gc_start][0] = KEY_ENTER; + gamecontroldefault[gc_start][0] = KEY_ESCAPE; // * // Gamepad controls gamecontroldefault[gc_up ][1] = KEY_HAT1+0; // D-Pad Up @@ -574,6 +574,10 @@ void G_DefineDefaultControls(void) gamecontroldefault[gc_down ][2] = KEY_AXIS1+3; // Axis Y+ gamecontroldefault[gc_left ][2] = KEY_AXIS1+0; // Axis X- gamecontroldefault[gc_right][2] = KEY_AXIS1+1; // Axis X+ + + // Keyboard menu navigation + gamecontroldefault[gc_a ][2] = KEY_ENTER; + gamecontroldefault[gc_x ][2] = KEY_ESCAPE; // * -> Yes, this works, gc_start will take priority to open the menu and allow closing it with gc_x which is also esc :) } void G_CopyControls(INT32 (*setupcontrols)[MAXINPUTMAPPING], INT32 (*fromcontrols)[MAXINPUTMAPPING], const INT32 *gclist, INT32 gclen)