shithub: choc

Download patch

ref: 512f236b25bbd2274cfdf17830f811ae6ab25e37
parent: 5cf245c0027abb2478aaf1f90efcaecd80af3a9e
author: Jonathan Dowland <[email protected]>
date: Thu Mar 2 03:55:23 EST 2017

Add NES30 to known joysticks

In the two bluetooth modes; I don't have a micro USB cable handy to
test USB gamepad mode right now.

--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -344,6 +344,7 @@
 };
 
 // http://www.8bitdo.com/sfc30/ or http://www.8bitdo.com/snes30/
+// and http://www.8bitdo.com/nes30/
 static const joystick_config_t sfc30_controller[] =
 {
     {"joystick_x_axis",        0},
@@ -495,6 +496,15 @@
         "SFC30 *",
         4, 12, 1,
         sfc30_controller,
+    },
+
+    // NES30 (not pro), tested in default and "hold R whilst turning on"
+    // mode, with whatever firmware it came with out of the box. Latter
+    // mode puts " Joystick" suffix on the name string
+    {
+        "8Bitdo NES30 GamePad*",
+        4, 16, 1,
+        sfc30_controller, // identical to SFC30
     },
 };