Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c257e8ad
Commit
c257e8ad
authored
Nov 19, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Nov 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix device type dump.
parent
d9d17252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
joystick.c
dlls/dinput/joystick.c
+29
-6
No files found.
dlls/dinput/joystick.c
View file @
c257e8ad
...
...
@@ -400,16 +400,38 @@ HRESULT WINAPI JoystickAGenericImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface, REF
return
JoystickWGenericImpl_SetProperty
(
IDirectInputDevice8W_from_impl
(
This
),
rguid
,
ph
);
}
#define DEBUG_TYPE(x) case (x): str = #x; break
void
_dump_DIDEVCAPS
(
const
DIDEVCAPS
*
lpDIDevCaps
)
{
int
type
=
GET_DIDEVICE_TYPE
(
lpDIDevCaps
->
dwDevType
);
const
char
*
str
;
TRACE
(
"dwSize: %d
\n
"
,
lpDIDevCaps
->
dwSize
);
TRACE
(
"dwFlags: %08x
\n
"
,
lpDIDevCaps
->
dwFlags
);
TRACE
(
"dwDevType: %08x %s
\n
"
,
lpDIDevCaps
->
dwDevType
,
lpDIDevCaps
->
dwDevType
==
DIDEVTYPE_DEVICE
?
"DIDEVTYPE_DEVICE"
:
lpDIDevCaps
->
dwDevType
==
DIDEVTYPE_MOUSE
?
"DIDEVTYPE_MOUSE"
:
lpDIDevCaps
->
dwDevType
==
DIDEVTYPE_KEYBOARD
?
"DIDEVTYPE_KEYBOARD"
:
lpDIDevCaps
->
dwDevType
==
DIDEVTYPE_JOYSTICK
?
"DIDEVTYPE_JOYSTICK"
:
lpDIDevCaps
->
dwDevType
==
DIDEVTYPE_HID
?
"DIDEVTYPE_HID"
:
"UNKNOWN"
);
switch
(
type
)
{
/* Directx <= 7 definitions */
DEBUG_TYPE
(
DIDEVTYPE_DEVICE
);
DEBUG_TYPE
(
DIDEVTYPE_MOUSE
);
DEBUG_TYPE
(
DIDEVTYPE_KEYBOARD
);
DEBUG_TYPE
(
DIDEVTYPE_JOYSTICK
);
DEBUG_TYPE
(
DIDEVTYPE_HID
);
/* Directx >= 8 definitions */
DEBUG_TYPE
(
DI8DEVTYPE_DEVICE
);
DEBUG_TYPE
(
DI8DEVTYPE_MOUSE
);
DEBUG_TYPE
(
DI8DEVTYPE_KEYBOARD
);
DEBUG_TYPE
(
DI8DEVTYPE_JOYSTICK
);
DEBUG_TYPE
(
DI8DEVTYPE_GAMEPAD
);
DEBUG_TYPE
(
DI8DEVTYPE_DRIVING
);
DEBUG_TYPE
(
DI8DEVTYPE_FLIGHT
);
DEBUG_TYPE
(
DI8DEVTYPE_1STPERSON
);
DEBUG_TYPE
(
DI8DEVTYPE_DEVICECTRL
);
DEBUG_TYPE
(
DI8DEVTYPE_SCREENPOINTER
);
DEBUG_TYPE
(
DI8DEVTYPE_REMOTE
);
DEBUG_TYPE
(
DI8DEVTYPE_SUPPLEMENTAL
);
default:
str
=
"UNKNOWN"
;
}
TRACE
(
"dwDevType: %08x %s
\n
"
,
lpDIDevCaps
->
dwDevType
,
str
);
TRACE
(
"dwAxes: %d
\n
"
,
lpDIDevCaps
->
dwAxes
);
TRACE
(
"dwButtons: %d
\n
"
,
lpDIDevCaps
->
dwButtons
);
TRACE
(
"dwPOVs: %d
\n
"
,
lpDIDevCaps
->
dwPOVs
);
...
...
@@ -421,6 +443,7 @@ void _dump_DIDEVCAPS(const DIDEVCAPS *lpDIDevCaps)
TRACE
(
"dwFFDriverVersion: %d
\n
"
,
lpDIDevCaps
->
dwFFDriverVersion
);
}
}
#undef DEBUG_TYPE
HRESULT
WINAPI
JoystickWGenericImpl_GetCapabilities
(
LPDIRECTINPUTDEVICE8W
iface
,
LPDIDEVCAPS
lpDIDevCaps
)
{
...
...
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