Skip to content

Commit

Permalink
[package] [kernel-osmc] RBP: add retropie xpad driver changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
  • Loading branch information
samnazarko committed Aug 22, 2016
1 parent 0353ad6 commit 7d6327d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions package/kernel-osmc/patches/rbp-032-add-retropie-xpad-fixes.patch
@@ -0,0 +1,28 @@
diff --git a/xpad.c b/xpad.c
index 2ff80cf..8c8ea54 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -75,6 +75,7 @@
* Later changes can be tracked in SCM.
*/
#define DEBUG
+#define CONFIG_JOYSTICK_XPAD_LEDS 1
#include <linux/kernel.h>
#include <linux/input.h>
#include <linux/rcupdate.h>
@@ -1505,12 +1506,13 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id

if (dpad_to_buttons)
xpad->mapping |= MAP_DPAD_TO_BUTTONS;
- if (triggers_to_buttons)
- xpad->mapping |= MAP_TRIGGERS_TO_BUTTONS;
if (sticks_to_null)
xpad->mapping |= MAP_STICKS_TO_NULL;
}

+ if (triggers_to_buttons)
+ xpad->mapping |= MAP_TRIGGERS_TO_BUTTONS;
+
if (xpad->xtype == XTYPE_XBOXONE &&
intf->cur_altsetting->desc.bInterfaceNumber != 0) {
/*

0 comments on commit 7d6327d

Please sign in to comment.