From f0b710024a2820cd062163db29fddccc03cdf5a3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 19 Apr 2014 01:35:40 -0400 Subject: joystick: Add joystick button to toggle menu. When using a joystick or gamepad it's nice to be able to bring up the menu without having to reach for the keyboard. This makes modern gamepads more useful/usable. --- src/setup/joystick.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/setup/joystick.c') diff --git a/src/setup/joystick.c b/src/setup/joystick.c index 9e04ba0b..23cbaa4a 100644 --- a/src/setup/joystick.c +++ b/src/setup/joystick.c @@ -72,7 +72,8 @@ static txt_button_t *joystick_button; static int *all_joystick_buttons[] = { &joybstraferight, &joybstrafeleft, &joybfire, &joybspeed, - &joybuse, &joybstrafe, &joybprevweapon, &joybnextweapon, &joybjump + &joybuse, &joybstrafe, &joybprevweapon, &joybnextweapon, &joybjump, + &joybmenu, }; // -- cgit v1.2.3