Commit fc2ad216 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Added some missing definitions.

parent 9386cb22
...@@ -68,6 +68,10 @@ DEFINE_GUID(GUID_Unknown,0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54, ...@@ -68,6 +68,10 @@ DEFINE_GUID(GUID_Unknown,0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,
DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_SysKeyboard, 0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); DEFINE_GUID(GUID_SysKeyboard, 0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_Joystick, 0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00); DEFINE_GUID(GUID_Joystick, 0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_SysMouseEm2, 0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
/* predefined forcefeedback effects */ /* predefined forcefeedback effects */
DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35); DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
...@@ -310,7 +314,28 @@ DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE8) ...@@ -310,7 +314,28 @@ DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE8)
#define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType) #define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType)
#define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType) #define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType)
typedef struct { typedef struct DIDEVICEOBJECTINSTANCE_DX3A {
DWORD dwSize;
GUID guidType;
DWORD dwOfs;
DWORD dwType;
DWORD dwFlags;
CHAR tszName[MAX_PATH];
} DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A;
typedef struct DIDEVICEOBJECTINSTANCE_DX3W {
DWORD dwSize;
GUID guidType;
DWORD dwOfs;
DWORD dwType;
DWORD dwFlags;
WCHAR tszName[MAX_PATH];
} DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W;
DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE_DX3)
DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE_DX3)
DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE_DX3)
typedef struct DIDEVICEOBJECTINSTANCEA {
DWORD dwSize; DWORD dwSize;
GUID guidType; GUID guidType;
DWORD dwOfs; DWORD dwOfs;
...@@ -331,7 +356,7 @@ typedef struct { ...@@ -331,7 +356,7 @@ typedef struct {
} DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA; } DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA;
typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA; typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA;
typedef struct { typedef struct DIDEVICEOBJECTINSTANCEW {
DWORD dwSize; DWORD dwSize;
GUID guidType; GUID guidType;
DWORD dwOfs; DWORD dwOfs;
...@@ -356,8 +381,28 @@ DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE) ...@@ -356,8 +381,28 @@ DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE)
DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE) DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE)
DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE) DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE)
typedef struct DIDEVICEINSTANCE_DX3A {
DWORD dwSize;
GUID guidInstance;
GUID guidProduct;
DWORD dwDevType;
CHAR tszInstanceName[MAX_PATH];
CHAR tszProductName[MAX_PATH];
} DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A;
typedef struct DIDEVICEINSTANCE_DX3W {
DWORD dwSize;
GUID guidInstance;
GUID guidProduct;
DWORD dwDevType;
WCHAR tszInstanceName[MAX_PATH];
WCHAR tszProductName[MAX_PATH];
} DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W;
DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE_DX3)
DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE_DX3)
DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE_DX3)
typedef struct { typedef struct DIDEVICEINSTANCEA {
DWORD dwSize; DWORD dwSize;
GUID guidInstance; GUID guidInstance;
GUID guidProduct; GUID guidProduct;
...@@ -372,7 +417,7 @@ typedef struct { ...@@ -372,7 +417,7 @@ typedef struct {
} DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA; } DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA;
typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA; typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA;
typedef struct { typedef struct DIDEVICEINSTANCEW {
DWORD dwSize; DWORD dwSize;
GUID guidInstance; GUID guidInstance;
GUID guidProduct; GUID guidProduct;
...@@ -566,6 +611,11 @@ typedef BOOL (CALLBACK *LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFEC ...@@ -566,6 +611,11 @@ typedef BOOL (CALLBACK *LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFEC
#define DIDFT_FFACTUATOR 0x01000000 #define DIDFT_FFACTUATOR 0x01000000
#define DIDFT_FFEFFECTTRIGGER 0x02000000 #define DIDFT_FFEFFECTTRIGGER 0x02000000
#define DIDFT_OUTPUT 0x10000000 #define DIDFT_OUTPUT 0x10000000
#define DIDFT_VENDORDEFINED 0x04000000
#define DIDFT_ALIAS 0x08000000
#ifndef DIDFT_OPTIONAL
#define DIDFT_OPTIONAL 0x80000000
#endif
#define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8) #define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8)
#define DIDFT_NOCOLLECTION 0x00FFFF00 #define DIDFT_NOCOLLECTION 0x00FFFF00
#define DIDF_ABSAXIS 0x00000001 #define DIDF_ABSAXIS 0x00000001
...@@ -675,6 +725,14 @@ typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH; ...@@ -675,6 +725,14 @@ typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH;
#define DIPROP_CALIBRATION MAKEDIPROP(11) #define DIPROP_CALIBRATION MAKEDIPROP(11)
#define DIPROP_GUIDANDPATH MAKEDIPROP(12) #define DIPROP_GUIDANDPATH MAKEDIPROP(12)
typedef struct DIDEVCAPS_DX3 {
DWORD dwSize;
DWORD dwFlags;
DWORD dwDevType;
DWORD dwAxes;
DWORD dwButtons;
DWORD dwPOVs;
} DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3;
typedef struct DIDEVCAPS { typedef struct DIDEVCAPS {
DWORD dwSize; DWORD dwSize;
...@@ -703,6 +761,11 @@ typedef struct DIDEVCAPS { ...@@ -703,6 +761,11 @@ typedef struct DIDEVCAPS {
#define DIDC_POSNEGCOEFFICIENTS 0x00001000 #define DIDC_POSNEGCOEFFICIENTS 0x00001000
#define DIDC_POSNEGSATURATION 0x00002000 #define DIDC_POSNEGSATURATION 0x00002000
#define DIDC_DEADBAND 0x00004000 #define DIDC_DEADBAND 0x00004000
#define DIDC_STARTDELAY 0x00008000
#define DIDC_ALIAS 0x00010000
#define DIDC_PHANTOM 0x00020000
#define DIDC_HIDDEN 0x00040000
/* SetCooperativeLevel dwFlags */ /* SetCooperativeLevel dwFlags */
#define DISCL_EXCLUSIVE 0x00000001 #define DISCL_EXCLUSIVE 0x00000001
...@@ -710,6 +773,27 @@ typedef struct DIDEVCAPS { ...@@ -710,6 +773,27 @@ typedef struct DIDEVCAPS {
#define DISCL_FOREGROUND 0x00000004 #define DISCL_FOREGROUND 0x00000004
#define DISCL_BACKGROUND 0x00000008 #define DISCL_BACKGROUND 0x00000008
#define DIEFT_ALL 0x00000000
#define DIEFT_CONSTANTFORCE 0x00000001
#define DIEFT_RAMPFORCE 0x00000002
#define DIEFT_PERIODIC 0x00000003
#define DIEFT_CONDITION 0x00000004
#define DIEFT_CUSTOMFORCE 0x00000005
#define DIEFT_HARDWARE 0x000000FF
#define DIEFT_FFATTACK 0x00000200
#define DIEFT_FFFADE 0x00000400
#define DIEFT_SATURATION 0x00000800
#define DIEFT_POSNEGCOEFFICIENTS 0x00001000
#define DIEFT_POSNEGSATURATION 0x00002000
#define DIEFT_DEADBAND 0x00004000
#define DIEFT_STARTDELAY 0x00008000
#define DIEFT_GETTYPE(n) LOBYTE(n)
#define DI_DEGREES 100
#define DI_FFNOMINALMAX 10000
#define DI_SECONDS 1000000
typedef struct DICONSTANTFORCE { typedef struct DICONSTANTFORCE {
LONG lMagnitude; LONG lMagnitude;
} DICONSTANTFORCE, *LPDICONSTANTFORCE; } DICONSTANTFORCE, *LPDICONSTANTFORCE;
...@@ -756,6 +840,23 @@ typedef struct DIENVELOPE { ...@@ -756,6 +840,23 @@ typedef struct DIENVELOPE {
} DIENVELOPE, *LPDIENVELOPE; } DIENVELOPE, *LPDIENVELOPE;
typedef const DIENVELOPE *LPCDIENVELOPE; typedef const DIENVELOPE *LPCDIENVELOPE;
typedef struct DIEFFECT_DX5 {
DWORD dwSize;
DWORD dwFlags;
DWORD dwDuration;
DWORD dwSamplePeriod;
DWORD dwGain;
DWORD dwTriggerButton;
DWORD dwTriggerRepeatInterval;
DWORD cAxes;
LPDWORD rgdwAxes;
LPLONG rglDirection;
LPDIENVELOPE lpEnvelope;
DWORD cbTypeSpecificParams;
LPVOID lpvTypeSpecificParams;
} DIEFFECT_DX5, *LPDIEFFECT_DX5;
typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5;
typedef struct DIEFFECT { typedef struct DIEFFECT {
DWORD dwSize; DWORD dwSize;
DWORD dwFlags; DWORD dwFlags;
...@@ -770,8 +871,11 @@ typedef struct DIEFFECT { ...@@ -770,8 +871,11 @@ typedef struct DIEFFECT {
LPDIENVELOPE lpEnvelope; LPDIENVELOPE lpEnvelope;
DWORD cbTypeSpecificParams; DWORD cbTypeSpecificParams;
LPVOID lpvTypeSpecificParams; LPVOID lpvTypeSpecificParams;
DWORD dwStartDelay;
} DIEFFECT, *LPDIEFFECT; } DIEFFECT, *LPDIEFFECT;
typedef const DIEFFECT *LPCDIEFFECT; typedef const DIEFFECT *LPCDIEFFECT;
typedef DIEFFECT DIEFFECT_DX6;
typedef LPDIEFFECT LPDIEFFECT_DX6;
typedef struct DIEFFECTINFOA { typedef struct DIEFFECTINFOA {
DWORD dwSize; DWORD dwSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment