src/sensor/windows/SDL_windowssensor.c
changeset 13776 74f7ed12a32b
parent 13768 5e7c6765ceda
child 13838 02e41b30186f
     1.1 --- a/src/sensor/windows/SDL_windowssensor.c	Wed Apr 22 14:57:06 2020 -0700
     1.2 +++ b/src/sensor/windows/SDL_windowssensor.c	Wed Apr 22 15:42:32 2020 -0700
     1.3 @@ -41,6 +41,13 @@
     1.4  DEFINE_GUID(IID_SensorManagerEvents, 0x9B3B0B86, 0x266A, 0x4AAD, 0xB2, 0x1F, 0xFD, 0xE5, 0x50, 0x10, 0x01, 0xB7);
     1.5  DEFINE_GUID(IID_SensorEvents, 0x5D8DCC91, 0x4641, 0x47E7, 0xB7, 0xC3, 0xB7, 0x4F, 0x48, 0xA6, 0xC3, 0x91);
     1.6  
     1.7 +/* These constants aren't available in Visual Studio 2015 or earlier Windows SDK  */
     1.8 +#if defined(_MSC_VER) && _MSC_VER <= 1900
     1.9 +DEFINE_PROPERTYKEY(SENSOR_DATA_TYPE_ANGULAR_VELOCITY_X_DEGREES_PER_SECOND, 0X3F8A69A2, 0X7C5, 0X4E48, 0XA9, 0X65, 0XCD, 0X79, 0X7A, 0XAB, 0X56, 0XD5, 10); //[VT_R8]
    1.10 +DEFINE_PROPERTYKEY(SENSOR_DATA_TYPE_ANGULAR_VELOCITY_Y_DEGREES_PER_SECOND, 0X3F8A69A2, 0X7C5, 0X4E48, 0XA9, 0X65, 0XCD, 0X79, 0X7A, 0XAB, 0X56, 0XD5, 11); //[VT_R8]
    1.11 +DEFINE_PROPERTYKEY(SENSOR_DATA_TYPE_ANGULAR_VELOCITY_Z_DEGREES_PER_SECOND, 0X3F8A69A2, 0X7C5, 0X4E48, 0XA9, 0X65, 0XCD, 0X79, 0X7A, 0XAB, 0X56, 0XD5, 12); //[VT_R8]
    1.12 +#endif
    1.13 +
    1.14  typedef struct
    1.15  {
    1.16      SDL_SensorID id;