From 5e1b5d89f7820fef6795f932fe9eafe6b6a423b3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 9 Feb 2023 05:57:08 +0300 Subject: [PATCH] engine: client: console: allow opening OSK and existing console with gamepads for all platforms --- engine/client/console.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engine/client/console.c b/engine/client/console.c index cf7336e8..615142a0 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -1638,7 +1638,6 @@ void Key_Console( int key ) return; } -#if XASH_NSWITCH // enable the OSK with button press if( key == K_Y_BUTTON ) { @@ -1646,15 +1645,15 @@ void Key_Console( int key ) return; } - // exit the console by pressing MINUS - if( key == K_BACK_BUTTON ) + // exit the console by pressing MINUS on NSwitch + // or both Back(Select)/Start buttons for everyone else + if( key == K_BACK_BUTTON || key == K_START_BUTTON ) { if( cls.state == ca_active && !cl.background ) Key_SetKeyDest( key_game ); else UI_SetActiveMenu( true ); return; } -#endif // pass to the normal editline routine Field_KeyDownEvent( &con.input, key );