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
1ae26eba
Commit
1ae26eba
authored
Jun 02, 2002
by
Vincent Béron
Committed by
Alexandre Julliard
Jun 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Made sure const LP were actually const in dinput.h.
- Uniformized the {A,W} declarations of some structures.
parent
c075f35e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
23 deletions
+26
-23
dinput_private.h
dlls/dinput/dinput_private.h
+1
-1
linux.c
dlls/dinput/joystick/linux.c
+1
-1
linuxinput.c
dlls/dinput/joystick/linuxinput.c
+1
-1
main.c
dlls/dinput/keyboard/main.c
+1
-1
main.c
dlls/dinput/mouse/main.c
+1
-1
dinput.h
include/dinput.h
+21
-18
No files found.
dlls/dinput/dinput_private.h
View file @
1ae26eba
...
...
@@ -36,7 +36,7 @@ struct IDirectInputAImpl
/* Function called by all devices that Wine supports */
typedef
struct
dinput_device
{
INT
pref
;
BOOL
(
*
enum_device
)(
DWORD
dwDevType
,
DWORD
dwFlags
,
LP
C
DIDEVICEINSTANCEA
lpddi
);
BOOL
(
*
enum_device
)(
DWORD
dwDevType
,
DWORD
dwFlags
,
LPDIDEVICEINSTANCEA
lpddi
);
HRESULT
(
*
create_device
)(
IDirectInputAImpl
*
dinput
,
REFGUID
rguid
,
REFIID
riid
,
LPDIRECTINPUTDEVICEA
*
pdev
);
}
dinput_device
;
...
...
dlls/dinput/joystick/linux.c
View file @
1ae26eba
...
...
@@ -85,7 +85,7 @@ static GUID DInput_Wine_Joystick_GUID = { /* 9e573ed9-7734-11d2-8d4a-23903fb6bdf
{
0x8d
,
0x4a
,
0x23
,
0x90
,
0x3f
,
0xb6
,
0xbd
,
0xf7
}
};
static
BOOL
joydev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LP
C
DIDEVICEINSTANCEA
lpddi
)
static
BOOL
joydev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LPDIDEVICEINSTANCEA
lpddi
)
{
if
((
dwDevType
==
0
)
||
(
GET_DIDEVICE_TYPE
(
dwDevType
)
==
DIDEVTYPE_JOYSTICK
))
{
/* check whether we have a joystick */
...
...
dlls/dinput/joystick/linuxinput.c
View file @
1ae26eba
...
...
@@ -118,7 +118,7 @@ static GUID DInput_Wine_Joystick_GUID = { /* 9e573eda-7734-11d2-8d4a-23903fb6bdf
#define test_bit(arr,bit) (((BYTE*)arr)[bit>>3]&(1<<(bit&7)))
static
BOOL
joydev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LP
C
DIDEVICEINSTANCEA
lpddi
)
static
BOOL
joydev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LPDIDEVICEINSTANCEA
lpddi
)
{
int
i
,
fd
,
havejoy
=
0
;
...
...
dlls/dinput/keyboard/main.c
View file @
1ae26eba
...
...
@@ -134,7 +134,7 @@ static GUID DInput_Wine_Keyboard_GUID = { /* 0ab8648a-7735-11d2-8c73-71df54a9644
{
0x8c
,
0x73
,
0x71
,
0xdf
,
0x54
,
0xa9
,
0x64
,
0x41
}
};
static
BOOL
keyboarddev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LP
C
DIDEVICEINSTANCEA
lpddi
)
static
BOOL
keyboarddev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LPDIDEVICEINSTANCEA
lpddi
)
{
if
((
dwDevType
==
0
)
||
(
dwDevType
==
DIDEVTYPE_KEYBOARD
))
{
TRACE
(
"Enumerating the Keyboard device
\n
"
);
...
...
dlls/dinput/mouse/main.c
View file @
1ae26eba
...
...
@@ -144,7 +144,7 @@ static GUID DInput_Wine_Mouse_GUID = { /* 9e573ed8-7734-11d2-8d4a-23903fb6bdf7 *
static
IDirectInputDevice2A
*
current_lock
=
NULL
;
static
BOOL
mousedev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LP
C
DIDEVICEINSTANCEA
lpddi
)
static
BOOL
mousedev_enum_device
(
DWORD
dwDevType
,
DWORD
dwFlags
,
LPDIDEVICEINSTANCEA
lpddi
)
{
if
((
dwDevType
==
0
)
||
(
dwDevType
==
DIDEVTYPE_MOUSE
))
{
TRACE
(
"Enumerating the mouse device
\n
"
);
...
...
include/dinput.h
View file @
1ae26eba
...
...
@@ -214,7 +214,8 @@ typedef struct {
WORD
wExponent
;
WORD
wReserved
;
#endif
/* DIRECTINPUT_VERSION >= 0x0500 */
}
DIDEVICEOBJECTINSTANCEA
,
*
LPDIDEVICEOBJECTINSTANCEA
,
*
LPCDIDEVICEOBJECTINSTANCEA
;
}
DIDEVICEOBJECTINSTANCEA
,
*
LPDIDEVICEOBJECTINSTANCEA
;
typedef
const
DIDEVICEOBJECTINSTANCEA
*
LPCDIDEVICEOBJECTINSTANCEA
;
typedef
struct
{
DWORD
dwSize
;
...
...
@@ -234,9 +235,12 @@ typedef struct {
WORD
wExponent
;
WORD
wReserved
;
#endif
/* DIRECTINPUT_VERSION >= 0x0500 */
}
DIDEVICEOBJECTINSTANCEW
,
*
LPDIDEVICEOBJECTINSTANCEW
,
*
LPCDIDEVICEOBJECTINSTANCEW
;
DECL_WINELIB_TYPE_AW
(
LPDIDEVICEOBJECTINSTANCE
)
}
DIDEVICEOBJECTINSTANCEW
,
*
LPDIDEVICEOBJECTINSTANCEW
;
typedef
const
DIDEVICEOBJECTINSTANCEW
*
LPCDIDEVICEOBJECTINSTANCEW
;
DECL_WINELIB_TYPE_AW
(
DIDEVICEOBJECTINSTANCE
)
DECL_WINELIB_TYPE_AW
(
LPDIDEVICEOBJECTINSTANCE
)
DECL_WINELIB_TYPE_AW
(
LPCDIDEVICEOBJECTINSTANCE
)
typedef
struct
{
...
...
@@ -251,7 +255,8 @@ typedef struct {
WORD
wUsagePage
;
WORD
wUsage
;
#endif
/* DIRECTINPUT_VERSION >= 0x0500 */
}
DIDEVICEINSTANCEA
,
*
LPDIDEVICEINSTANCEA
,
*
LPCDIDEVICEINSTANCEA
;
}
DIDEVICEINSTANCEA
,
*
LPDIDEVICEINSTANCEA
;
typedef
const
DIDEVICEINSTANCEA
*
LPCDIDEVICEINSTANCEA
;
typedef
struct
{
DWORD
dwSize
;
...
...
@@ -265,7 +270,9 @@ typedef struct {
WORD
wUsagePage
;
WORD
wUsage
;
#endif
/* DIRECTINPUT_VERSION >= 0x0500 */
}
DIDEVICEINSTANCEW
,
*
LPDIDEVICEINSTANCEW
,
*
LPCDIDEVICEINSTANCEW
;
}
DIDEVICEINSTANCEW
,
*
LPDIDEVICEINSTANCEW
;
typedef
const
DIDEVICEINSTANCEW
*
LPCDIDEVICEINSTANCEW
;
DECL_WINELIB_TYPE_AW
(
DIDEVICEINSTANCE
)
DECL_WINELIB_TYPE_AW
(
LPDIDEVICEINSTANCE
)
DECL_WINELIB_TYPE_AW
(
LPCDIDEVICEINSTANCE
)
...
...
@@ -449,7 +456,8 @@ typedef struct DIDEVICEOBJECTDATA {
DWORD
dwData
;
DWORD
dwTimeStamp
;
DWORD
dwSequence
;
}
DIDEVICEOBJECTDATA
,
*
LPDIDEVICEOBJECTDATA
,
*
LPCDIDEVICEOBJECTDATA
;
}
DIDEVICEOBJECTDATA
,
*
LPDIDEVICEOBJECTDATA
;
typedef
const
DIDEVICEOBJECTDATA
*
LPCDIDEVICEOBJECTDATA
;
typedef
struct
_DIOBJECTDATAFORMAT
{
const
GUID
*
pguid
;
...
...
@@ -511,7 +519,8 @@ typedef struct DIPROPGUIDANDPATH {
DIPROPHEADER
diph
;
GUID
guidClass
;
WCHAR
wszPath
[
MAX_PATH
];
}
DIPROPGUIDANDPATH
,
*
LPDIPROPGUIDANDPATH
,
*
LPCDIPROPGUIDANDPATH
;
}
DIPROPGUIDANDPATH
,
*
LPDIPROPGUIDANDPATH
;
typedef
const
DIPROPGUIDANDPATH
*
LPCDIPROPGUIDANDPATH
;
/* special property GUIDs */
#ifdef __cplusplus
...
...
@@ -657,6 +666,7 @@ typedef struct DIEFFECTINFOA {
DWORD
dwDynamicParams
;
CHAR
tszName
[
MAX_PATH
];
}
DIEFFECTINFOA
,
*
LPDIEFFECTINFOA
;
typedef
const
DIEFFECTINFOA
*
LPCDIEFFECTINFOA
;
typedef
struct
DIEFFECTINFOW
{
DWORD
dwSize
;
...
...
@@ -666,18 +676,11 @@ typedef struct DIEFFECTINFOW {
DWORD
dwDynamicParams
;
WCHAR
tszName
[
MAX_PATH
];
}
DIEFFECTINFOW
,
*
LPDIEFFECTINFOW
;
#ifdef UNICODE
typedef
DIEFFECTINFOW
DIEFFECTINFO
;
typedef
LPDIEFFECTINFOW
LPDIEFFECTINFO
;
#else
typedef
DIEFFECTINFOA
DIEFFECTINFO
;
typedef
LPDIEFFECTINFOA
LPDIEFFECTINFO
;
#endif
typedef
const
DIEFFECTINFOA
*
LPCDIEFFECTINFOA
;
typedef
const
DIEFFECTINFOW
*
LPCDIEFFECTINFOW
;
typedef
const
DIEFFECTINFO
*
LPCDIEFFECTINFO
;
DECL_WINELIB_TYPE_AW
(
DIEFFECTINFO
)
DECL_WINELIB_TYPE_AW
(
LPDIEFFECTINFO
)
DECL_WINELIB_TYPE_AW
(
LPCDIEFFECTINFO
)
typedef
BOOL
(
CALLBACK
*
LPDIENUMEFFECTSCALLBACKA
)(
LPCDIEFFECTINFOA
,
LPVOID
);
typedef
BOOL
(
CALLBACK
*
LPDIENUMEFFECTSCALLBACKW
)(
LPCDIEFFECTINFOW
,
LPVOID
);
...
...
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