Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[package] [kernel-osmc] RBP: add retropie xpad driver changes
Signed-off-by: Sam Nazarko <email@samnazarko.co.uk>
- Loading branch information
1 parent
0353ad6
commit 7d6327d
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
package/kernel-osmc/patches/rbp-032-add-retropie-xpad-fixes.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) { | ||
/* |