forked from libretro/Lakka-LibreELEC
6fb5ad6fee
* libCEC: Update to 6.0.2 * L4T: Switch-bsp: Fix typos * Switch: Fix all permission issues with running kodi as a non-root user. * L4T: Switch: Minor code cleanups * Add upower and libgudev so kodi can get battery stats Upower was removed from libreELEC in 2013 with this commit: 3a130cd5009c8d3595b8afcde2421324572ce58b This was a stupid choice as it is the only option in kodi for supplying any battery statitistics. Currently broken. This patchset: https://github.com/xbmc/xbmc/pull/17327/commits for kodi seemingliy wants to fix the issue(Doesnt, is more of a new way to deal with dbus in general), but will still require that upower be available for battery. * Switch: LibreELEC: Peripheral.Joystick: Fix Add Patches from PR's upstream to fix issues with udev devices * Switch: LibreElec: Peripheral.Joystick: Add Nintendo Switch udev joystick mappings * Switch: LibreELEC: Peripheral.Joystick: Force Udev controller driver as default.
215 lines
12 KiB
Diff
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>
|