summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2014-08-24 20:23:22 -0400
committerSimon Howard2014-08-24 20:23:22 -0400
commit4f8972e688a82e59184cdbd70d5fc7d7292e9619 (patch)
tree9ee7d117eda95b1fa51a7d02b3527b88f1787e05 /src
parent4bddc00244c2e1561d2d24a322156c7887e7e2ed (diff)
downloadchocolate-doom-4f8972e688a82e59184cdbd70d5fc7d7292e9619.tar.gz
chocolate-doom-4f8972e688a82e59184cdbd70d5fc7d7292e9619.tar.bz2
chocolate-doom-4f8972e688a82e59184cdbd70d5fc7d7292e9619.zip
setup: Add gamepad config for Buffalo Classic Gamepad.
The Buffalo Classic USB Gamepad is a USB gamepad that resembles the classic SNES controller. Thansk to Fabian Greffrath for sending in the report.
Diffstat (limited to 'src')
-rw-r--r--src/setup/joystick.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index 39e8873d..f723fd13 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -260,6 +260,22 @@ static const joystick_config_t multilaser_js030_controller[] =
{NULL, 0},
};
+// Buffalo Classic USB Gamepad (thanks Fabian Greffrath).
+static const joystick_config_t buffalo_classic_controller[] =
+{
+ {"joystick_x_axis", 0},
+ {"joystick_y_axis", 1},
+ {"joyb_use", 0}, // A
+ {"joyb_speed", 1}, // B
+ {"joyb_jump", 2}, // X
+ {"joyb_fire", 3}, // Y
+ {"joyb_strafeleft", 4}, // Left shoulder
+ {"joyb_straferight", 5}, // Right shoulder
+ {"joyb_prevweapon", 6}, // Select
+ {"joyb_menu_activate", 7}, // Start
+ {NULL, 0},
+};
+
static const known_joystick_t known_joysticks[] =
{
{
@@ -310,6 +326,12 @@ static const known_joystick_t known_joysticks[] =
4, 12, 1,
multilaser_js030_controller,
},
+
+ {
+ "USB,2-axis 8-button gamepad ",
+ 2, 8, 0,
+ buffalo_classic_controller,
+ },
};
static const known_joystick_t *GetJoystickType(int index)