mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 23:10:58 +00:00
Fixed gyro values for the Armor-X Pro controller
This commit is contained in:
parent
37517557ae
commit
8df7b4d853
1 changed files with 4 additions and 2 deletions
|
@ -601,13 +601,15 @@ static void HIDAPI_DriverPS4_LoadCalibrationData(SDL_HIDAPI_Device *device)
|
|||
|
||||
if (device->vendor_id == USB_VENDOR_SONY &&
|
||||
device->product_id == USB_PRODUCT_SONY_DS4_STRIKEPAD) {
|
||||
/* The Armor-X Pro seems to rotate in the opposite direction on the Z axis */
|
||||
/* The Armor-X Pro seems to only deliver half the rotation it should,
|
||||
* and in the opposite direction on the Z axis */
|
||||
switch (i) {
|
||||
case 0:
|
||||
case 1:
|
||||
scale *= 2.0;
|
||||
break;
|
||||
case 2:
|
||||
scale *= -1.0;
|
||||
scale *= -2.0;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue