Explorar el Código

Added gyro support for the Flydigi Vader 3 Pro controller

Sam Lantinga hace 10 meses
padre
commit
e18a6313de
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/joystick/hidapi/SDL_hidapi_flydigi.c

+ 2 - 0
src/joystick/hidapi/SDL_hidapi_flydigi.c

@@ -195,6 +195,8 @@ static void UpdateDeviceIdentity(SDL_HIDAPI_Device *device)
     case 81:
         HIDAPI_SetDeviceName(device, "Flydigi Vader 3 Pro");
         ctx->has_cz = true;
+        ctx->sensors_supported = true;
+        ctx->accelScale = SDL_STANDARD_GRAVITY / 256.0f;
         break;
     case 85:
         HIDAPI_SetDeviceName(device, "Flydigi Vader 4 Pro");