foxygit / doom Log in
commit f3cd3474180938f60381efe41e90ba16e4bba51e
Author:     Mike Swanson <mikeonthecomputer@gmail.com>
AuthorDate: Sat Apr 1 17:31:11 2017 -0700
Commit:     Mike Swanson <mikeonthecomputer@gmail.com>
CommitDate: Sun Apr 2 15:58:29 2017 -0700

    joystick: Add NES30 Pro (not FC30) mappings for Linux

    Previous commit only concerned FC30.  Tested this with both USB and
    Bluetooth modes.
---
 src/setup/joystick.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index 861ec70d..a9cb4755 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -475,6 +475,13 @@ static const known_joystick_t known_joysticks[] =
         nes30_pro_controller,
     },

+    // the above, NES variant, via USB on Linux/Raspbian (odd values)
+    {
+        "8Bitdo NES30 Pro*",
+        6, 15, 1,
+        nes30_pro_controller,
+    },
+
     // the above, connected over bluetooth
     {
         "8Bitdo FC30 Pro",
@@ -482,6 +489,13 @@ static const known_joystick_t known_joysticks[] =
         nes30_pro_controller,
     },

+    // the above, NES variant, connected over bluetooth
+    {
+        "8Bitdo NES30 Pro",
+        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