|
|
@ -1638,7 +1638,6 @@ void Key_Console( int key ) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if XASH_NSWITCH |
|
|
|
|
|
|
|
// enable the OSK with button press
|
|
|
|
// enable the OSK with button press
|
|
|
|
if( key == K_Y_BUTTON ) |
|
|
|
if( key == K_Y_BUTTON ) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1646,15 +1645,15 @@ void Key_Console( int key ) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// exit the console by pressing MINUS
|
|
|
|
// exit the console by pressing MINUS on NSwitch
|
|
|
|
if( key == K_BACK_BUTTON ) |
|
|
|
// 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 ) |
|
|
|
if( cls.state == ca_active && !cl.background ) |
|
|
|
Key_SetKeyDest( key_game ); |
|
|
|
Key_SetKeyDest( key_game ); |
|
|
|
else UI_SetActiveMenu( true ); |
|
|
|
else UI_SetActiveMenu( true ); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// pass to the normal editline routine
|
|
|
|
// pass to the normal editline routine
|
|
|
|
Field_KeyDownEvent( &con.input, key ); |
|
|
|
Field_KeyDownEvent( &con.input, key ); |
|
|
|