[PATCH] winebus.sys: Map more SDL Xbox controllers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] winebus.sys: Map more SDL Xbox controllers

Kai Krakow
These device ids are usually returned by newer firmware versions.
Especially, the Android mode of the controller (when paired by bluetooth
to a Linux system) changes the input mapping of the controller. The
current kernel drivers do not correct this, xpadneo[1] is needed as the
driver to get correct mapping.

[1]: https://github.com/atar-axis/xpadneo

Signed-off-by: Kai Krakow <[hidden email]>
---
 dlls/winebus.sys/bus_sdl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
index 3a98fa71ff..e666d0419c 100644
--- a/dlls/winebus.sys/bus_sdl.c
+++ b/dlls/winebus.sys/bus_sdl.c
@@ -69,9 +69,11 @@ static const WORD PID_XBOX_CONTROLLERS[] =  {
     0x028f, /* Xbox360 Wireless Controller */
     0x02d1, /* Xbox One Controller */
     0x02dd, /* Xbox One Controller (Covert Forces/Firmware 2015) */
+    0x02e0, /* Xbox One X Controller */
     0x02e3, /* Xbox One Elite Controller */
     0x02e6, /* Wireless XBox Controller Dongle */
     0x02ea, /* Xbox One S Controller */
+    0x02fd, /* Xbox One S Controller (Firmware 2017) */
     0x0719, /* Xbox 360 Wireless Adapter */
 };
 
--
2.16.1



Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] winebus.sys: Map more SDL Xbox controllers

Aric Stewart
Signed-off-by: Aric Stewart <[hidden email]>

On 3/11/18 3:40 AM, Kai Krakow wrote:

> These device ids are usually returned by newer firmware versions.
> Especially, the Android mode of the controller (when paired by bluetooth
> to a Linux system) changes the input mapping of the controller. The
> current kernel drivers do not correct this, xpadneo[1] is needed as the
> driver to get correct mapping.
>
> [1]: https://github.com/atar-axis/xpadneo
>
> Signed-off-by: Kai Krakow <[hidden email]>
> ---
>   dlls/winebus.sys/bus_sdl.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
> index 3a98fa71ff..e666d0419c 100644
> --- a/dlls/winebus.sys/bus_sdl.c
> +++ b/dlls/winebus.sys/bus_sdl.c
> @@ -69,9 +69,11 @@ static const WORD PID_XBOX_CONTROLLERS[] =  {
>       0x028f, /* Xbox360 Wireless Controller */
>       0x02d1, /* Xbox One Controller */
>       0x02dd, /* Xbox One Controller (Covert Forces/Firmware 2015) */
> +    0x02e0, /* Xbox One X Controller */
>       0x02e3, /* Xbox One Elite Controller */
>       0x02e6, /* Wireless XBox Controller Dongle */
>       0x02ea, /* Xbox One S Controller */
> +    0x02fd, /* Xbox One S Controller (Firmware 2017) */
>       0x0719, /* Xbox 360 Wireless Adapter */
>   };
>  
>