Skip to content

Commit

Permalink
Accept console commands with controller button A
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Dec 23, 2023
1 parent 214b49b commit 6b48cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Quake/keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ void Key_Console (int key)
{
case K_ENTER:
case K_KP_ENTER:
case K_ABUTTON:
key_tabpartial[0] = 0;
Cbuf_AddText (workline + 1); // skip the prompt
Cbuf_AddText ("\n");
Expand Down Expand Up @@ -979,6 +980,7 @@ void Key_Init (void)
#endif
consolekeys[K_MWHEELUP] = true;
consolekeys[K_MWHEELDOWN] = true;
consolekeys[K_ABUTTON] = true;

//
// initialize menubound[]
Expand Down

0 comments on commit 6b48cee

Please sign in to comment.