mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-01 07:35:39 +00:00
6590d078d7
rofferom
I have an annoying issue on MacOS about XBoxOne Bluetooth rumble (Vendor: 0x045e, Product: 0x02fd).
When 360controller is installed, rumble is working correctly. However, Bluetooth rumble isn't working at all, with or without 360controller installed (although it is working with Chrome + https://html5gamepad.com).
I looked at the code, and it seems that XBox controllers are managed in MacOS in this file: SDL_hidapi_xbox360.c. The XBoxOne file is disabled for MacOS in SDL_hidjoystick_c.h.
The function HIDAPI_DriverXbox360_Rumble() is called correctly, and hid_write() returns no error.
I have tried a stupid test. I took the rumble packet from 360controller:
|
||
---|---|---|
.. | ||
steam | ||
SDL_hidapi_gamecube.c | ||
SDL_hidapi_ps4.c | ||
SDL_hidapi_rumble.c | ||
SDL_hidapi_rumble.h | ||
SDL_hidapi_steam.c | ||
SDL_hidapi_switch.c | ||
SDL_hidapi_xbox360.c | ||
SDL_hidapi_xbox360w.c | ||
SDL_hidapi_xboxone.c | ||
SDL_hidapijoystick.c | ||
SDL_hidapijoystick_c.h |