mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fixed the accelerometer sensitivity for the Armor-X Pro controller
This commit is contained in:
parent
3340864786
commit
8029a767ee
1 changed files with 6 additions and 0 deletions
|
|
@ -404,6 +404,12 @@ static SDL_bool HIDAPI_DriverPS4_InitDevice(SDL_HIDAPI_Device *device)
|
|||
ctx->effects_supported = SDL_FALSE;
|
||||
}
|
||||
|
||||
if (device->vendor_id == USB_VENDOR_SONY &&
|
||||
device->product_id == USB_PRODUCT_SONY_DS4_STRIKEPAD) {
|
||||
/* The Armor-X Pro seems to only deliver half the acceleration it should */
|
||||
ctx->accel_numerator *= 2;
|
||||
}
|
||||
|
||||
device->joystick_type = joystick_type;
|
||||
device->type = SDL_GAMEPAD_TYPE_PS4;
|
||||
if (ctx->official_controller) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue