shithub: choc

Download patch

ref: 432f853e96a379d29c6882b636ab0354f26ad9f8
parent: f3cd3474180938f60381efe41e90ba16e4bba51e
author: Mike Swanson <[email protected]>
date: Sun Apr 2 11:55:53 EDT 2017

joystick: Add NES30 Pro Joystick mode

With the device in joystick mode, the device swaps the D-Pad and
left joysticks with each other, and players might want to use the
joystick instead to play the game.

--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -496,6 +496,15 @@
         nes30_pro_controller,
     },
 
+    // 8bitdo NES30 Pro, in joystick mode (R1+Power), swaps the D-Pad
+    // and analog stick inputs.  Only applicable over Bluetooth. On USB,
+    // this mode registers the device as an Xbox 360 pad.
+    {
+        "8Bitdo NES30 Pro Joystick",
+        6, 16, 1,
+        nes30_pro_controller,
+    },
+
     // 8Bitdo SFC30 SNES replica controller
     // in default mode and in controller mode (Start+R)
     // the latter suffixes "Joystick" to the name