0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-05 19:47:57 +00:00
Lakka-LibreELEC/projects/L4T/devices/Switch/patches/peripheral.joystick/05-Add-Switch-joycon-mappings.patch
GavinDarkglider 600e246a94 L4T/Ayn: upstream changes from 5.x
Lakka 5.x Switch changes (#1853)
Lakka v5.x switchroot 5.1.2 (#1871)
Fix Switch Issue's in upstream 5.x (#1888)
Minor Switch Changes (#1893)
Lakka v5.x switch 3 (#1895)
Lakka v5.x switch 4 (#1898)
L4T: Xorg-server: Fix build issue (#1924)
Switch: remove ra patch
Lakka v5.x switch 6 (#1926)
Cleanups, More LibreELEC Stuff, more permission fixes, Misc switch stuff. (#1930)
Switch: U-Boot: bump version to 2024-NX02 (#1946)

L4T/Ayn post-upstreaming fixes
- retroarch_joypad_autoconfig: remove spaces from file names
- retroarch: remove Switch specific patch merged upstream
- libXv: move to L4T packages folder (package removed in upstream)
- bring some packages from v5.x to L4T packages
- ffmpeg: remove vulkan
- remove stella core from Switch build (missing C++ headers)
- Ayn/Odin: use proper kernel arg to not hide kernel messages in console
- connman: add wpa_supplicant support back
2024-05-21 15:41:36 +02:00

215 lines
12 KiB
Diff

diff -Naur peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_18b_4a.xml peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_18b_4a.xml
--- peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_18b_4a.xml 1970-01-01 01:00:00.000000000 +0100
+++ peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_18b_4a.xml 2024-02-04 18:58:05.396501380 +0100
@@ -0,0 +1,37 @@
+<?xml version="1.0" ?>
+<buttonmap>
+ <device name="Nintendo Switch Combined Joy-Cons" provider="udev" vid="057E" pid="2008" buttoncount="18" axiscount="4">
+ <configuration />
+ <controller id="game.controller.default">
+ <feature name="a" button="1" />
+ <feature name="b" button="0" />
+ <feature name="back" button="9" />
+ <feature name="down" button="15" />
+ <feature name="guide" button="11" />
+ <feature name="left" button="16" />
+ <feature name="leftbumper" button="5" />
+ <feature name="leftstick">
+ <up axis="-1" />
+ <down axis="+1" />
+ <right axis="+0" />
+ <left axis="-0" />
+ </feature>
+ <feature name="leftthumb" button="12" />
+ <feature name="lefttrigger" button="7" />
+ <feature name="right" button="17" />
+ <feature name="rightbumper" button="6" />
+ <feature name="rightstick">
+ <up axis="-3" />
+ <down axis="+3" />
+ <right axis="+2" />
+ <left axis="-2" />
+ </feature>
+ <feature name="rightthumb" button="13" />
+ <feature name="righttrigger" button="8" />
+ <feature name="start" button="10" />
+ <feature name="up" button="14" />
+ <feature name="x" button="2" />
+ <feature name="y" button="3" />
+ </controller>
+ </device>
+</buttonmap>
diff -Naur peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_22b_4a.xml peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_22b_4a.xml
--- peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_22b_4a.xml 1970-01-01 01:00:00.000000000 +0100
+++ peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Combined_Joy-Cons_V057E_P2008_22b_4a.xml 2024-02-04 19:18:42.955765642 +0100
@@ -0,0 +1,37 @@
+<?xml version="1.0" ?>
+<buttonmap>
+ <device name="Nintendo Switch Combined Joy-Cons" provider="udev" vid="057E" pid="2008" buttoncount="22" axiscount="4">
+ <configuration />
+ <controller id="game.controller.default">
+ <feature name="a" button="1" />
+ <feature name="b" button="0" />
+ <feature name="back" button="9" />
+ <feature name="down" button="15" />
+ <feature name="guide" button="11" />
+ <feature name="left" button="16" />
+ <feature name="leftbumper" button="5" />
+ <feature name="leftstick">
+ <up axis="-1" />
+ <down axis="+1" />
+ <right axis="+0" />
+ <left axis="-0" />
+ </feature>
+ <feature name="leftthumb" button="12" />
+ <feature name="lefttrigger" button="7" />
+ <feature name="right" button="17" />
+ <feature name="rightbumper" button="6" />
+ <feature name="rightstick">
+ <up axis="-3" />
+ <down axis="+3" />
+ <right axis="+2" />
+ <left axis="-2" />
+ </feature>
+ <feature name="rightthumb" button="13" />
+ <feature name="righttrigger" button="8" />
+ <feature name="start" button="10" />
+ <feature name="up" button="14" />
+ <feature name="x" button="2" />
+ <feature name="y" button="3" />
+ </controller>
+ </device>
+</buttonmap>
diff -Naur peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Left_Joy-Con_V057E_P2006_11b_2a.xml peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Left_Joy-Con_V057E_P2006_11b_2a.xml
--- peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Left_Joy-Con_V057E_P2006_11b_2a.xml 1970-01-01 01:00:00.000000000 +0100
+++ peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Left_Joy-Con_V057E_P2006_11b_2a.xml 2024-02-04 07:32:57.729631786 +0100
@@ -0,0 +1,21 @@
+<?xml version="1.0" ?>
+<buttonmap>
+ <device name="Nintendo Switch Left Joy-Con" provider="udev" vid="057E" pid="2006" buttoncount="11" axiscount="2">
+ <configuration />
+ <controller id="game.controller.default">
+ <feature name="a" button="8" />
+ <feature name="b" button="9" />
+ <feature name="back" button="5" />
+ <feature name="down" axis="-0" />
+ <feature name="guide" button="6" />
+ <feature name="left" axis="-1" />
+ <feature name="leftbumper" button="2" />
+ <feature name="right" axis="+1" />
+ <feature name="rightbumper" button="4" />
+ <feature name="start" button="0" />
+ <feature name="up" axis="+0" />
+ <feature name="x" button="10" />
+ <feature name="y" button="7" />
+ </controller>
+ </device>
+</buttonmap>
diff -Naur peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Lite_Gamepad_V057E_PF123_18b_4a.xml peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Lite_Gamepad_V057E_PF123_18b_4a.xml
--- peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Lite_Gamepad_V057E_PF123_18b_4a.xml 1970-01-01 01:00:00.000000000 +0100
+++ peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Lite_Gamepad_V057E_PF123_18b_4a.xml 2024-02-04 18:59:57.934616823 +0100
@@ -0,0 +1,37 @@
+<?xml version="1.0" ?>
+<buttonmap>
+ <device name="Nintendo Switch Lite Gamepad" provider="udev" vid="057E" pid="F123" buttoncount="18" axiscount="4">
+ <configuration />
+ <controller id="game.controller.default">
+ <feature name="a" button="1" />
+ <feature name="b" button="0" />
+ <feature name="back" button="9" />
+ <feature name="down" button="15" />
+ <feature name="guide" button="11" />
+ <feature name="left" button="16" />
+ <feature name="leftbumper" button="5" />
+ <feature name="leftstick">
+ <up axis="-1" />
+ <down axis="+1" />
+ <right axis="+0" />
+ <left axis="-0" />
+ </feature>
+ <feature name="leftthumb" button="12" />
+ <feature name="lefttrigger" button="7" />
+ <feature name="right" button="17" />
+ <feature name="rightbumper" button="6" />
+ <feature name="rightstick">
+ <up axis="-3" />
+ <down axis="+3" />
+ <right axis="+2" />
+ <left axis="-2" />
+ </feature>
+ <feature name="rightthumb" button="13" />
+ <feature name="righttrigger" button="8" />
+ <feature name="start" button="10" />
+ <feature name="up" button="14" />
+ <feature name="x" button="2" />
+ <feature name="y" button="3" />
+ </controller>
+ </device>
+</buttonmap>
diff -Naur peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Pro_Controller_V057E_P2009_18b_4a.xml peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Pro_Controller_V057E_P2009_18b_4a.xml
--- peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Pro_Controller_V057E_P2009_18b_4a.xml 1970-01-01 01:00:00.000000000 +0100
+++ peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Pro_Controller_V057E_P2009_18b_4a.xml 2024-02-04 19:01:34.232427026 +0100
@@ -0,0 +1,37 @@
+<?xml version="1.0" ?>
+<buttonmap>
+ <device name="Nintendo Switch Pro Controller" provider="udev" vid="057E" pid="2009" buttoncount="18" axiscount="4">
+ <configuration />
+ <controller id="game.controller.default">
+ <feature name="a" button="1" />
+ <feature name="b" button="0" />
+ <feature name="back" button="9" />
+ <feature name="down" button="15" />
+ <feature name="guide" button="11" />
+ <feature name="left" button="16" />
+ <feature name="leftbumper" button="5" />
+ <feature name="leftstick">
+ <up axis="-1" />
+ <down axis="+1" />
+ <right axis="+0" />
+ <left axis="-0" />
+ </feature>
+ <feature name="leftthumb" button="12" />
+ <feature name="lefttrigger" button="7" />
+ <feature name="right" button="17" />
+ <feature name="rightbumper" button="6" />
+ <feature name="rightstick">
+ <up axis="-3" />
+ <down axis="+3" />
+ <right axis="+2" />
+ <left axis="-2" />
+ </feature>
+ <feature name="rightthumb" button="13" />
+ <feature name="righttrigger" button="8" />
+ <feature name="start" button="10" />
+ <feature name="up" button="14" />
+ <feature name="x" button="2" />
+ <feature name="y" button="3" />
+ </controller>
+ </device>
+</buttonmap>
diff -Naur peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Right_Joy-Con_V057E_P2007_11b_2a.xml peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Right_Joy-Con_V057E_P2007_11b_2a.xml
--- peripheral.joystick-21.1.10-Omega/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Right_Joy-Con_V057E_P2007_11b_2a.xml 1970-01-01 01:00:00.000000000 +0100
+++ peripheral.joystick-21.1.10-Omega-2/peripheral.joystick/resources/buttonmaps/xml/udev/Nintendo_Switch_Right_Joy-Con_V057E_P2007_11b_2a.xml 2024-02-04 07:32:57.729631786 +0100
@@ -0,0 +1,21 @@
+<?xml version="1.0" ?>
+<buttonmap>
+ <device name="Nintendo Switch Right Joy-Con" provider="udev" vid="057E" pid="2007" buttoncount="11" axiscount="2">
+ <configuration />
+ <controller id="game.controller.default">
+ <feature name="a" button="2" />
+ <feature name="b" button="1" />
+ <feature name="back" button="9" />
+ <feature name="down" axis="+0" />
+ <feature name="guide" button="10" />
+ <feature name="left" axis="+1" />
+ <feature name="leftbumper" button="4" />
+ <feature name="right" axis="-1" />
+ <feature name="rightbumper" button="6" />
+ <feature name="start" button="8" />
+ <feature name="up" axis="-0" />
+ <feature name="x" button="3" />
+ <feature name="y" button="0" />
+ </controller>
+ </device>
+</buttonmap>