Video menu: support x360 keys

This commit is contained in:
Eric Wasylishen 2016-02-13 00:37:55 -07:00
parent b9d22460c4
commit 55080e0e11

View file

@ -1941,6 +1941,7 @@ static void VID_MenuKey (int key)
switch (key)
{
case K_ESCAPE:
case K_X360_B:
VID_SyncCvars (); //sync cvars before leaving menu. FIXME: there are other ways to leave menu
S_LocalSound ("misc/menu1.wav");
M_Menu_Options_f ();
@ -2004,6 +2005,7 @@ static void VID_MenuKey (int key)
case K_ENTER:
case K_KP_ENTER:
case K_X360_A:
m_entersound = true;
switch (video_options_cursor)
{