From 4f8972e688a82e59184cdbd70d5fc7d7292e9619 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 24 Aug 2014 20:23:22 -0400 Subject: 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. --- src/setup/joystick.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src') 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) -- cgit v1.2.3