mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
fixed quit panic button and editor access button
This commit is contained in:
parent
555ee67ed0
commit
d08271f1dc
|
@ -1601,11 +1601,19 @@ static void client_run()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* panic quit button */
|
/* panic quit button */
|
||||||
|
#ifdef CONFIG_NO_SDL
|
||||||
if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_pressed('Q'))
|
if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_pressed('Q'))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_down('E'))
|
if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_down('E'))
|
||||||
config.cl_editor = config.cl_editor^1;
|
config.cl_editor = config.cl_editor^1;
|
||||||
|
#else
|
||||||
|
if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_pressed('q'))
|
||||||
|
break;
|
||||||
|
|
||||||
|
if(inp_key_pressed(KEY_LCTRL) && inp_key_pressed(KEY_LSHIFT) && inp_key_down('e'))
|
||||||
|
config.cl_editor = config.cl_editor^1;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(!gfx_window_open())
|
if(!gfx_window_open())
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue