Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fc2ad216
Commit
fc2ad216
authored
Aug 30, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Aug 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some missing definitions.
parent
9386cb22
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
4 deletions
+108
-4
dinput.h
include/dinput.h
+108
-4
No files found.
include/dinput.h
View file @
fc2ad216
...
...
@@ -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_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_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 */
DEFINE_GUID
(
GUID_ConstantForce
,
0x13541C20
,
0x8E33
,
0x11D0
,
0x9A
,
0xD0
,
0x00
,
0xA0
,
0xC9
,
0xA0
,
0x6E
,
0x35
);
...
...
@@ -310,7 +314,28 @@ DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE8)
#define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(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
;
GUID
guidType
;
DWORD
dwOfs
;
...
...
@@ -331,7 +356,7 @@ typedef struct {
}
DIDEVICEOBJECTINSTANCEA
,
*
LPDIDEVICEOBJECTINSTANCEA
;
typedef
const
DIDEVICEOBJECTINSTANCEA
*
LPCDIDEVICEOBJECTINSTANCEA
;
typedef
struct
{
typedef
struct
DIDEVICEOBJECTINSTANCEW
{
DWORD
dwSize
;
GUID
guidType
;
DWORD
dwOfs
;
...
...
@@ -356,8 +381,28 @@ DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE)
DECL_WINELIB_TYPE_AW
(
LPDIDEVICEOBJECTINSTANCE
)
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
;
GUID
guidInstance
;
GUID
guidProduct
;
...
...
@@ -372,7 +417,7 @@ typedef struct {
}
DIDEVICEINSTANCEA
,
*
LPDIDEVICEINSTANCEA
;
typedef
const
DIDEVICEINSTANCEA
*
LPCDIDEVICEINSTANCEA
;
typedef
struct
{
typedef
struct
DIDEVICEINSTANCEW
{
DWORD
dwSize
;
GUID
guidInstance
;
GUID
guidProduct
;
...
...
@@ -566,6 +611,11 @@ typedef BOOL (CALLBACK *LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFEC
#define DIDFT_FFACTUATOR 0x01000000
#define DIDFT_FFEFFECTTRIGGER 0x02000000
#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_NOCOLLECTION 0x00FFFF00
#define DIDF_ABSAXIS 0x00000001
...
...
@@ -675,6 +725,14 @@ typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH;
#define DIPROP_CALIBRATION MAKEDIPROP(11)
#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
{
DWORD
dwSize
;
...
...
@@ -703,6 +761,11 @@ typedef struct DIDEVCAPS {
#define DIDC_POSNEGCOEFFICIENTS 0x00001000
#define DIDC_POSNEGSATURATION 0x00002000
#define DIDC_DEADBAND 0x00004000
#define DIDC_STARTDELAY 0x00008000
#define DIDC_ALIAS 0x00010000
#define DIDC_PHANTOM 0x00020000
#define DIDC_HIDDEN 0x00040000
/* SetCooperativeLevel dwFlags */
#define DISCL_EXCLUSIVE 0x00000001
...
...
@@ -710,6 +773,27 @@ typedef struct DIDEVCAPS {
#define DISCL_FOREGROUND 0x00000004
#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
{
LONG
lMagnitude
;
}
DICONSTANTFORCE
,
*
LPDICONSTANTFORCE
;
...
...
@@ -756,6 +840,23 @@ typedef struct DIENVELOPE {
}
DIENVELOPE
,
*
LPDIENVELOPE
;
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
{
DWORD
dwSize
;
DWORD
dwFlags
;
...
...
@@ -770,8 +871,11 @@ typedef struct DIEFFECT {
LPDIENVELOPE
lpEnvelope
;
DWORD
cbTypeSpecificParams
;
LPVOID
lpvTypeSpecificParams
;
DWORD
dwStartDelay
;
}
DIEFFECT
,
*
LPDIEFFECT
;
typedef
const
DIEFFECT
*
LPCDIEFFECT
;
typedef
DIEFFECT
DIEFFECT_DX6
;
typedef
LPDIEFFECT
LPDIEFFECT_DX6
;
typedef
struct
DIEFFECTINFOA
{
DWORD
dwSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment