Closed Sorenon closed 1 year ago
This is one of the more interesting parts of the C API that I have seen so I made sure to check Windows.Win32.winmd in ILSpy to be sure this isn't just an issue with the rust generator.
Snippet from relevant header:
#ifdef __cplusplus #define MAKEDIPROP(prop) (*(const GUID *)(prop)) #else #define MAKEDIPROP(prop) ((REFGUID)(prop)) #endif #define DIPROP_BUFFERSIZE MAKEDIPROP(1) #define DIPROP_AXISMODE MAKEDIPROP(2) #define DIPROPAXISMODE_ABS 0 #define DIPROPAXISMODE_REL 1 #define DIPROP_GRANULARITY MAKEDIPROP(3) #define DIPROP_RANGE MAKEDIPROP(4) #define DIPROP_DEADZONE MAKEDIPROP(5) #define DIPROP_SATURATION MAKEDIPROP(6) #define DIPROP_FFGAIN MAKEDIPROP(7) #define DIPROP_FFLOAD MAKEDIPROP(8) #define DIPROP_AUTOCENTER MAKEDIPROP(9) #define DIPROPAUTOCENTER_OFF 0 #define DIPROPAUTOCENTER_ON 1 #define DIPROP_CALIBRATIONMODE MAKEDIPROP(10) #define DIPROPCALIBRATIONMODE_COOKED 0 #define DIPROPCALIBRATIONMODE_RAW 1 #if(DIRECTINPUT_VERSION >= 0x050a) #define DIPROP_CALIBRATION MAKEDIPROP(11) #define DIPROP_GUIDANDPATH MAKEDIPROP(12) #define DIPROP_INSTANCENAME MAKEDIPROP(13) #define DIPROP_PRODUCTNAME MAKEDIPROP(14) #endif /* DIRECTINPUT_VERSION >= 0x050a */ #if(DIRECTINPUT_VERSION >= 0x05b2) #define DIPROP_JOYSTICKID MAKEDIPROP(15) #define DIPROP_GETPORTDISPLAYNAME MAKEDIPROP(16) #endif /* DIRECTINPUT_VERSION >= 0x05b2 */ #if(DIRECTINPUT_VERSION >= 0x0700) #define DIPROP_PHYSICALRANGE MAKEDIPROP(18) #define DIPROP_LOGICALRANGE MAKEDIPROP(19) #endif /* DIRECTINPUT_VERSION >= 0x0700 */ #if(DIRECTINPUT_VERSION >= 0x0800) #define DIPROP_KEYNAME MAKEDIPROP(20) #define DIPROP_CPOINTS MAKEDIPROP(21) #define DIPROP_APPDATA MAKEDIPROP(22) #define DIPROP_SCANCODE MAKEDIPROP(23) #define DIPROP_VIDPID MAKEDIPROP(24) #define DIPROP_USERNAME MAKEDIPROP(25) #define DIPROP_TYPENAME MAKEDIPROP(26) #endif /* DIRECTINPUT_VERSION >= 0x0800 */
Are these flags or just missing GUIDs?
This is one of the more interesting parts of the C API that I have seen so I made sure to check Windows.Win32.winmd in ILSpy to be sure this isn't just an issue with the rust generator.
Snippet from relevant header: