mirror of https://github.com/libsdl-org/SDL.git
Added gyro support for the Flydigi Vader 3 Pro controller
This commit is contained in:
parent
71f479b4aa
commit
e18a6313de
|
|
@ -195,6 +195,8 @@ static void UpdateDeviceIdentity(SDL_HIDAPI_Device *device)
|
||||||
case 81:
|
case 81:
|
||||||
HIDAPI_SetDeviceName(device, "Flydigi Vader 3 Pro");
|
HIDAPI_SetDeviceName(device, "Flydigi Vader 3 Pro");
|
||||||
ctx->has_cz = true;
|
ctx->has_cz = true;
|
||||||
|
ctx->sensors_supported = true;
|
||||||
|
ctx->accelScale = SDL_STANDARD_GRAVITY / 256.0f;
|
||||||
break;
|
break;
|
||||||
case 85:
|
case 85:
|
||||||
HIDAPI_SetDeviceName(device, "Flydigi Vader 4 Pro");
|
HIDAPI_SetDeviceName(device, "Flydigi Vader 4 Pro");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue