diff options
author | Simon Howard | 2014-04-19 01:35:40 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-19 01:35:40 -0400 |
commit | f0b710024a2820cd062163db29fddccc03cdf5a3 (patch) | |
tree | 86e56b81132ad73f26e5eec1fd4c510e7d363e94 /src/setup | |
parent | 74e1b8b7548e6d14eb9be748279e8100a766cf04 (diff) | |
download | chocolate-doom-f0b710024a2820cd062163db29fddccc03cdf5a3.tar.gz chocolate-doom-f0b710024a2820cd062163db29fddccc03cdf5a3.tar.bz2 chocolate-doom-f0b710024a2820cd062163db29fddccc03cdf5a3.zip |
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.
Diffstat (limited to 'src/setup')
-rw-r--r-- | src/setup/joystick.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, }; // |