shithub: choc

Download patch

ref: 4bddc00244c2e1561d2d24a322156c7887e7e2ed
parent: 97f1de66497c1071ac138e0c63152267b9d2978f
author: Simon Howard <[email protected]>
date: Mon Aug 18 19:55:17 EDT 2014

setup: Add config for Multilaser JS030 gamepad.

Thanks to "Absolute Zero" for the report with the gamepad settings.

--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -243,6 +243,23 @@
     {NULL, 0},
 };
 
+// Multilaser JS030 gamepad, similar to a PS2 controller.
+static const joystick_config_t multilaser_js030_controller[] =
+{
+    {"joystick_x_axis",        0},   // Left stick / D-pad
+    {"joystick_y_axis",        1},
+    {"joyb_fire",              3},   // Square
+    {"joyb_speed",             2},   // X
+    {"joyb_use",               1},   // Circle
+    {"joyb_jump",              0},   // Triangle
+    {"joyb_strafeleft",        6},   // Bottom shoulder buttons
+    {"joyb_straferight",       7},
+    {"joyb_prevweapon",        4},   // Top shoulder buttons
+    {"joyb_nextweapon",        5},
+    {"joyb_menu_activate",     9},   // Start
+    {NULL, 0},
+};
+
 static const known_joystick_t known_joysticks[] =
 {
     {
@@ -286,6 +303,12 @@
         "Logitech Dual Action",
         4, 12, 1,
         logitech_f310_controller,
+    },
+
+    {
+        "USB Vibration Joystick",
+        4, 12, 1,
+        multilaser_js030_controller,
     },
 };