mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-21 03:21:08 +00:00
Video menu: support x360 keys
This commit is contained in:
parent
b9d22460c4
commit
55080e0e11
1 changed files with 2 additions and 0 deletions
|
@ -1941,6 +1941,7 @@ static void VID_MenuKey (int key)
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
case K_ESCAPE:
|
case K_ESCAPE:
|
||||||
|
case K_X360_B:
|
||||||
VID_SyncCvars (); //sync cvars before leaving menu. FIXME: there are other ways to leave menu
|
VID_SyncCvars (); //sync cvars before leaving menu. FIXME: there are other ways to leave menu
|
||||||
S_LocalSound ("misc/menu1.wav");
|
S_LocalSound ("misc/menu1.wav");
|
||||||
M_Menu_Options_f ();
|
M_Menu_Options_f ();
|
||||||
|
@ -2004,6 +2005,7 @@ static void VID_MenuKey (int key)
|
||||||
|
|
||||||
case K_ENTER:
|
case K_ENTER:
|
||||||
case K_KP_ENTER:
|
case K_KP_ENTER:
|
||||||
|
case K_X360_A:
|
||||||
m_entersound = true;
|
m_entersound = true;
|
||||||
switch (video_options_cursor)
|
switch (video_options_cursor)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue