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
7123f3e8
Commit
7123f3e8
authored
Oct 07, 2006
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Win64 printf format warning fixes.
parent
e5c1a014
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
166 additions
and
166 deletions
+166
-166
Makefile.in
dlls/dinput/Makefile.in
+0
-1
device.c
dlls/dinput/device.c
+42
-42
dinput_main.c
dlls/dinput/dinput_main.c
+11
-11
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+25
-25
joystick_linux.c
dlls/dinput/joystick_linux.c
+36
-36
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+20
-19
keyboard.c
dlls/dinput/keyboard.c
+14
-14
mouse.c
dlls/dinput/mouse.c
+18
-18
No files found.
dlls/dinput/Makefile.in
View file @
7123f3e8
...
...
@@ -6,7 +6,6 @@ MODULE = dinput.dll
IMPORTLIB
=
libdinput.
$(IMPLIBEXT)
IMPORTS
=
ole32 user32 advapi32 kernel32
EXTRALIBS
=
-ldxguid
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
data_formats.c
\
...
...
dlls/dinput/device.c
View file @
7123f3e8
This diff is collapsed.
Click to expand it.
dlls/dinput/dinput_main.c
View file @
7123f3e8
...
...
@@ -90,7 +90,7 @@ HRESULT WINAPI DirectInputCreateEx(
HRESULT
res
=
DIERR_OLDDIRECTINPUTVERSION
;
LPCVOID
vtable
=
NULL
;
TRACE
(
"(%p,%04
lx,%s,%p,%p)
\n
"
,
hinst
,
dwVersion
,
debugstr_guid
(
riid
),
ppDI
,
punkOuter
);
TRACE
(
"(%p,%04
x,%s,%p,%p)
\n
"
,
hinst
,
dwVersion
,
debugstr_guid
(
riid
),
ppDI
,
punkOuter
);
if
(
IsEqualGUID
(
&
IID_IDirectInputA
,
riid
)
||
IsEqualGUID
(
&
IID_IDirectInput2A
,
riid
)
||
...
...
@@ -196,7 +196,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
DIDEVICEINSTANCEA
devInstance
;
int
i
,
j
,
r
;
TRACE
(
"(this=%p,0x%04
lx '%s',%p,%p,%04l
x)
\n
"
,
TRACE
(
"(this=%p,0x%04
x '%s',%p,%p,%04
x)
\n
"
,
This
,
dwDevType
,
_dump_DIDEVTYPE_value
(
dwDevType
),
lpCallback
,
pvRef
,
dwFlags
);
TRACE
(
" flags: "
);
_dump_EnumDevices_dwFlags
(
dwFlags
);
TRACE
(
"
\n
"
);
...
...
@@ -226,7 +226,7 @@ static HRESULT WINAPI IDirectInputWImpl_EnumDevices(
DIDEVICEINSTANCEW
devInstance
;
int
i
,
j
,
r
;
TRACE
(
"(this=%p,0x%04
lx '%s',%p,%p,%04l
x)
\n
"
,
TRACE
(
"(this=%p,0x%04
x '%s',%p,%p,%04
x)
\n
"
,
This
,
dwDevType
,
_dump_DIDEVTYPE_value
(
dwDevType
),
lpCallback
,
pvRef
,
dwFlags
);
TRACE
(
" flags: "
);
_dump_EnumDevices_dwFlags
(
dwFlags
);
TRACE
(
"
\n
"
);
...
...
@@ -354,7 +354,7 @@ static HRESULT WINAPI IDirectInputWImpl_CreateDevice(LPDIRECTINPUT7W iface,
}
static
HRESULT
WINAPI
IDirectInputAImpl_Initialize
(
LPDIRECTINPUT7A
iface
,
HINSTANCE
hinst
,
DWORD
x
)
{
TRACE
(
"(this=%p,%p,%
l
x)
\n
"
,
iface
,
hinst
,
x
);
TRACE
(
"(this=%p,%p,%x)
\n
"
,
iface
,
hinst
,
x
);
/* Initialize can return: DIERR_BETADIRECTINPUTVERSION, DIERR_OLDDIRECTINPUTVERSION and DI_OK.
* Since we already initialized the device, return DI_OK. In the past we returned DIERR_ALREADYINITIALIZED
...
...
@@ -376,7 +376,7 @@ static HRESULT WINAPI IDirectInputAImpl_RunControlPanel(LPDIRECTINPUT7A iface,
HWND
hwndOwner
,
DWORD
dwFlags
)
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
FIXME
(
"(%p)->(%p,%08
l
x): stub
\n
"
,
This
,
hwndOwner
,
dwFlags
);
FIXME
(
"(%p)->(%p,%08x): stub
\n
"
,
This
,
hwndOwner
,
dwFlags
);
return
DI_OK
;
}
...
...
@@ -479,7 +479,7 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics(
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
FIXME
(
"(this=%p,%s,%p,%p,%p,%04
l
x): stub
\n
"
,
This
,
ptszUserName
,
lpdiActionFormat
,
FIXME
(
"(this=%p,%s,%p,%p,%p,%04x): stub
\n
"
,
This
,
ptszUserName
,
lpdiActionFormat
,
lpCallback
,
pvRef
,
dwFlags
);
return
0
;
}
...
...
@@ -492,7 +492,7 @@ static HRESULT WINAPI IDirectInput8WImpl_EnumDevicesBySemantics(
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
FIXME
(
"(this=%p,%s,%p,%p,%p,%04
l
x): stub
\n
"
,
This
,
debugstr_w
(
ptszUserName
),
lpdiActionFormat
,
FIXME
(
"(this=%p,%s,%p,%p,%p,%04x): stub
\n
"
,
This
,
debugstr_w
(
ptszUserName
),
lpdiActionFormat
,
lpCallback
,
pvRef
,
dwFlags
);
return
0
;
}
...
...
@@ -504,7 +504,7 @@ static HRESULT WINAPI IDirectInput8AImpl_ConfigureDevices(
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
FIXME
(
"(this=%p,%p,%p,%04
l
x,%p): stub
\n
"
,
This
,
lpdiCallback
,
lpdiCDParams
,
FIXME
(
"(this=%p,%p,%p,%04x,%p): stub
\n
"
,
This
,
lpdiCallback
,
lpdiCDParams
,
dwFlags
,
pvRefData
);
return
0
;
}
...
...
@@ -516,7 +516,7 @@ static HRESULT WINAPI IDirectInput8WImpl_ConfigureDevices(
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
FIXME
(
"(this=%p,%p,%p,%04
l
x,%p): stub
\n
"
,
This
,
lpdiCallback
,
lpdiCDParams
,
FIXME
(
"(this=%p,%p,%p,%04x,%p): stub
\n
"
,
This
,
lpdiCallback
,
lpdiCDParams
,
dwFlags
,
pvRefData
);
return
0
;
}
...
...
@@ -807,7 +807,7 @@ static BOOL create_hook_thread(void)
}
ref
=
++
hook_thread_refcount
;
TRACE
(
"Refcount %
l
d
\n
"
,
ref
);
TRACE
(
"Refcount %d
\n
"
,
ref
);
if
(
ref
==
1
)
{
DWORD
tid
;
...
...
@@ -836,7 +836,7 @@ static void release_hook_thread(void)
EnterCriticalSection
(
&
dinput_hook_crit
);
ref
=
--
hook_thread_refcount
;
TRACE
(
"Releasing to %
l
d
\n
"
,
ref
);
TRACE
(
"Releasing to %d
\n
"
,
ref
);
if
(
ref
==
0
)
{
HWND
hwnd
=
hook_thread_hwnd
;
...
...
dlls/dinput/effect_linuxinput.c
View file @
7123f3e8
...
...
@@ -120,33 +120,33 @@ static void _dump_DIEFFECT_flags(DWORD dwFlags)
static
void
_dump_DIENVELOPE
(
LPDIENVELOPE
env
)
{
if
(
env
->
dwSize
!=
sizeof
(
DIENVELOPE
))
{
WARN
(
"Non-standard DIENVELOPE structure size (%
l
d instead of %d).
\n
"
,
WARN
(
"Non-standard DIENVELOPE structure size (%d instead of %d).
\n
"
,
env
->
dwSize
,
sizeof
(
DIENVELOPE
));
}
TRACE
(
"Envelope has attack (level: %
ld time: %ld), fade (level: %ld time: %l
d)
\n
"
,
TRACE
(
"Envelope has attack (level: %
d time: %d), fade (level: %d time: %
d)
\n
"
,
env
->
dwAttackLevel
,
env
->
dwAttackTime
,
env
->
dwFadeLevel
,
env
->
dwFadeTime
);
}
static
void
_dump_DICONSTANTFORCE
(
LPDICONSTANTFORCE
frc
)
{
TRACE
(
"Constant force has magnitude %
l
d
\n
"
,
frc
->
lMagnitude
);
TRACE
(
"Constant force has magnitude %d
\n
"
,
frc
->
lMagnitude
);
}
static
void
_dump_DIPERIODIC
(
LPDIPERIODIC
frc
)
{
TRACE
(
"Periodic force has magnitude %
ld, offset %ld, phase %ld, period %l
d
\n
"
,
TRACE
(
"Periodic force has magnitude %
d, offset %d, phase %d, period %
d
\n
"
,
frc
->
dwMagnitude
,
frc
->
lOffset
,
frc
->
dwPhase
,
frc
->
dwPeriod
);
}
static
void
_dump_DIRAMPFORCE
(
LPDIRAMPFORCE
frc
)
{
TRACE
(
"Ramp force has start %
ld, end %l
d
\n
"
,
TRACE
(
"Ramp force has start %
d, end %
d
\n
"
,
frc
->
lStart
,
frc
->
lEnd
);
}
static
void
_dump_DICONDITION
(
LPDICONDITION
frc
)
{
TRACE
(
"Condition has offset %
ld, pos/neg coefficients %ld and %ld, pos/neg saturations %ld and %ld, deadband %l
d
\n
"
,
TRACE
(
"Condition has offset %
d, pos/neg coefficients %d and %d, pos/neg saturations %d and %d, deadband %
d
\n
"
,
frc
->
lOffset
,
frc
->
lPositiveCoefficient
,
frc
->
lNegativeCoefficient
,
frc
->
dwPositiveSaturation
,
frc
->
dwNegativeSaturation
,
frc
->
lDeadBand
);
}
...
...
@@ -154,14 +154,14 @@ static void _dump_DICONDITION(LPDICONDITION frc)
static
void
_dump_DICUSTOMFORCE
(
LPDICUSTOMFORCE
frc
)
{
unsigned
int
i
;
TRACE
(
"Custom force uses %
ld channels, sample period %ld. Has %l
d samples at %p.
\n
"
,
TRACE
(
"Custom force uses %
d channels, sample period %d. Has %
d samples at %p.
\n
"
,
frc
->
cChannels
,
frc
->
dwSamplePeriod
,
frc
->
cSamples
,
frc
->
rglForceData
);
if
(
frc
->
cSamples
%
frc
->
cChannels
!=
0
)
WARN
(
"Custom force has a non-integral samples-per-channel count!
\n
"
);
if
(
TRACE_ON
(
dinput
))
{
DPRINTF
(
"Custom force data (time aligned, axes in order):
\n
"
);
for
(
i
=
1
;
i
<=
frc
->
cSamples
;
++
i
)
{
DPRINTF
(
"%
l
d "
,
frc
->
rglForceData
[
i
]);
DPRINTF
(
"%d "
,
frc
->
rglForceData
[
i
]);
if
(
i
%
frc
->
cChannels
==
0
)
DPRINTF
(
"
\n
"
);
}
...
...
@@ -174,34 +174,34 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid)
DWORD
type
=
_typeFromGUID
(
guid
);
TRACE
(
"Dumping DIEFFECT structure:
\n
"
);
TRACE
(
" - dwSize: %
l
d
\n
"
,
eff
->
dwSize
);
TRACE
(
" - dwSize: %d
\n
"
,
eff
->
dwSize
);
if
((
eff
->
dwSize
!=
sizeof
(
DIEFFECT
))
&&
(
eff
->
dwSize
!=
sizeof
(
DIEFFECT_DX5
)))
{
WARN
(
"Non-standard DIEFFECT structure size (%
l
d instead of %d or %d).
\n
"
,
WARN
(
"Non-standard DIEFFECT structure size (%d instead of %d or %d).
\n
"
,
eff
->
dwSize
,
sizeof
(
DIEFFECT
),
sizeof
(
DIEFFECT_DX5
));
}
TRACE
(
" - dwFlags: %
l
d
\n
"
,
eff
->
dwFlags
);
TRACE
(
" - dwFlags: %d
\n
"
,
eff
->
dwFlags
);
TRACE
(
" "
);
_dump_DIEFFECT_flags
(
eff
->
dwFlags
);
TRACE
(
" - dwDuration: %
l
d
\n
"
,
eff
->
dwDuration
);
TRACE
(
" - dwGain: %
l
d
\n
"
,
eff
->
dwGain
);
TRACE
(
" - dwDuration: %d
\n
"
,
eff
->
dwDuration
);
TRACE
(
" - dwGain: %d
\n
"
,
eff
->
dwGain
);
if
((
eff
->
dwGain
>
10000
)
||
(
eff
->
dwGain
<
0
))
WARN
(
"dwGain is out of range (0 - 10,000)
\n
"
);
TRACE
(
" - dwTriggerButton: %
l
d
\n
"
,
eff
->
dwTriggerButton
);
TRACE
(
" - dwTriggerRepeatInterval: %
l
d
\n
"
,
eff
->
dwTriggerRepeatInterval
);
TRACE
(
" - cAxes: %
l
d
\n
"
,
eff
->
cAxes
);
TRACE
(
" - dwTriggerButton: %d
\n
"
,
eff
->
dwTriggerButton
);
TRACE
(
" - dwTriggerRepeatInterval: %d
\n
"
,
eff
->
dwTriggerRepeatInterval
);
TRACE
(
" - cAxes: %d
\n
"
,
eff
->
cAxes
);
TRACE
(
" - rgdwAxes: %p
\n
"
,
eff
->
rgdwAxes
);
if
(
TRACE_ON
(
dinput
))
{
TRACE
(
" "
);
for
(
i
=
0
;
i
<
eff
->
cAxes
;
++
i
)
DPRINTF
(
"%
l
d "
,
eff
->
rgdwAxes
[
i
]);
DPRINTF
(
"%d "
,
eff
->
rgdwAxes
[
i
]);
DPRINTF
(
"
\n
"
);
}
TRACE
(
" - rglDirection: %p
\n
"
,
eff
->
rglDirection
);
TRACE
(
" - lpEnvelope: %p
\n
"
,
eff
->
lpEnvelope
);
TRACE
(
" - cbTypeSpecificParams: %
l
d
\n
"
,
eff
->
cbTypeSpecificParams
);
TRACE
(
" - cbTypeSpecificParams: %d
\n
"
,
eff
->
cbTypeSpecificParams
);
TRACE
(
" - lpvTypeSpecificParams: %p
\n
"
,
eff
->
lpvTypeSpecificParams
);
if
(
eff
->
dwSize
>
sizeof
(
DIEFFECT_DX5
))
TRACE
(
" - dwStartDelay: %
l
d
\n
"
,
eff
->
dwStartDelay
);
TRACE
(
" - dwStartDelay: %d
\n
"
,
eff
->
dwStartDelay
);
if
(
eff
->
lpEnvelope
!=
NULL
)
_dump_DIENVELOPE
(
eff
->
lpEnvelope
);
if
(
type
==
DIEFT_CONSTANTFORCE
)
{
...
...
@@ -314,7 +314,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
{
HRESULT
diErr
=
DI_OK
;
LinuxInputEffectImpl
*
This
=
(
LinuxInputEffectImpl
*
)
iface
;
TRACE
(
"(this=%p,%p,%
l
d)
\n
"
,
This
,
peff
,
dwFlags
);
TRACE
(
"(this=%p,%p,%d)
\n
"
,
This
,
peff
,
dwFlags
);
/* Major conversion factors are:
* times: millisecond (linux) -> microsecond (windows) (x * 1000)
...
...
@@ -466,7 +466,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Initialize(
DWORD
dwVersion
,
REFGUID
rguid
)
{
FIXME
(
"(this=%p,%p,%
l
d,%s): stub!
\n
"
,
FIXME
(
"(this=%p,%p,%d,%s): stub!
\n
"
,
iface
,
hinst
,
dwVersion
,
debugstr_guid
(
rguid
));
return
DI_OK
;
...
...
@@ -500,7 +500,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Start(
struct
input_event
event
;
LinuxInputEffectImpl
*
This
=
(
LinuxInputEffectImpl
*
)
iface
;
TRACE
(
"(this=%p,%
ld,%l
d)
\n
"
,
This
,
dwIterations
,
dwFlags
);
TRACE
(
"(this=%p,%
d,%
d)
\n
"
,
This
,
dwIterations
,
dwFlags
);
if
(
!
(
dwFlags
&
DIES_NODOWNLOAD
))
{
/* Download the effect if necessary */
...
...
@@ -535,7 +535,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
DWORD
type
=
_typeFromGUID
(
&
This
->
guid
);
HRESULT
retval
=
DI_OK
;
TRACE
(
"(this=%p,%p,%
l
d)
\n
"
,
This
,
peff
,
dwFlags
);
TRACE
(
"(this=%p,%p,%d)
\n
"
,
This
,
peff
,
dwFlags
);
_dump_DIEFFECT
(
peff
,
&
This
->
guid
);
...
...
@@ -846,7 +846,7 @@ HRESULT linuxinput_get_info_A(
{
DWORD
type
=
_typeFromGUID
(
rguid
);
TRACE
(
"(%d, %s, %p) type=%
l
d
\n
"
,
fd
,
_dump_dinput_GUID
(
rguid
),
info
,
type
);
TRACE
(
"(%d, %s, %p) type=%d
\n
"
,
fd
,
_dump_dinput_GUID
(
rguid
),
info
,
type
);
if
(
!
info
)
return
E_POINTER
;
...
...
@@ -880,7 +880,7 @@ HRESULT linuxinput_get_info_W(
{
DWORD
type
=
_typeFromGUID
(
rguid
);
TRACE
(
"(%d, %s, %p) type=%
l
d
\n
"
,
fd
,
_dump_dinput_GUID
(
rguid
),
info
,
type
);
TRACE
(
"(%d, %s, %p) type=%d
\n
"
,
fd
,
_dump_dinput_GUID
(
rguid
),
info
,
type
);
if
(
!
info
)
return
E_POINTER
;
...
...
dlls/dinput/joystick_linux.c
View file @
7123f3e8
This diff is collapsed.
Click to expand it.
dlls/dinput/joystick_linuxinput.c
View file @
7123f3e8
...
...
@@ -845,17 +845,17 @@ static void calculate_ids(LPDIDATAFORMAT df)
axis
++
;
type
=
DIDFT_GETTYPE
(
df
->
rgodf
[
i
].
dwType
)
|
DIDFT_MAKEINSTANCE
(
axis
+
axis_base
);
TRACE
(
"axis type = 0x%08
l
x
\n
"
,
type
);
TRACE
(
"axis type = 0x%08x
\n
"
,
type
);
}
else
if
(
DIDFT_GETTYPE
(
df
->
rgodf
[
i
].
dwType
)
&
DIDFT_POV
)
{
pov
++
;
type
=
DIDFT_GETTYPE
(
df
->
rgodf
[
i
].
dwType
)
|
DIDFT_MAKEINSTANCE
(
pov
+
pov_base
);
TRACE
(
"POV type = 0x%08
l
x
\n
"
,
type
);
TRACE
(
"POV type = 0x%08x
\n
"
,
type
);
}
else
if
(
DIDFT_GETTYPE
(
df
->
rgodf
[
i
].
dwType
)
&
DIDFT_BUTTON
)
{
button
++
;
type
=
DIDFT_GETTYPE
(
df
->
rgodf
[
i
].
dwType
)
|
DIDFT_MAKEINSTANCE
(
button
+
button_base
);
TRACE
(
"button type = 0x%08
l
x
\n
"
,
type
);
TRACE
(
"button type = 0x%08x
\n
"
,
type
);
}
df
->
rgodf
[
i
].
dwType
=
type
;
}
...
...
@@ -998,7 +998,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceState(
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
TRACE
(
"(this=%p,0x%08
lx,%p)
\n
"
,
This
,
len
,
ptr
);
TRACE
(
"(this=%p,0x%08
x,%p)
\n
"
,
This
,
len
,
ptr
);
if
(
This
->
joyfd
==-
1
)
{
WARN
(
"not acquired
\n
"
);
...
...
@@ -1027,7 +1027,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
int
nqtail
;
HRESULT
hr
=
DI_OK
;
TRACE
(
"(%p)->(dods=%
ld,entries=%ld,fl=0x%08lx)
\n
"
,
This
,
dodsize
,
*
entries
,
flags
);
TRACE
(
"(%p)->(dods=%
d,entries=%d,fl=0x%08x)
\n
"
,
This
,
dodsize
,
*
entries
,
flags
);
if
(
This
->
joyfd
==-!
1
)
{
WARN
(
"not acquired
\n
"
);
...
...
@@ -1045,7 +1045,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
if
(
dod
==
NULL
)
{
if
(
len
)
TRACE
(
"Application discarding %
l
d event(s).
\n
"
,
len
);
TRACE
(
"Application discarding %d event(s).
\n
"
,
len
);
*
entries
=
len
;
nqtail
=
This
->
queue_tail
+
len
;
...
...
@@ -1058,7 +1058,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
}
if
(
len
)
TRACE
(
"Application retrieving %
l
d event(s).
\n
"
,
len
);
TRACE
(
"Application retrieving %d event(s).
\n
"
,
len
);
*
entries
=
0
;
nqtail
=
This
->
queue_tail
;
...
...
@@ -1102,14 +1102,15 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
}
TRACE
(
"(this=%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
ph
);
TRACE
(
"ph.dwSize = %ld, ph.dwHeaderSize =%ld, ph.dwObj = %ld, ph.dwHow= %ld
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
TRACE
(
"ph.dwSize = %d, ph.dwHeaderSize =%d, ph.dwObj = %d, ph.dwHow= %d
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
if
(
!
HIWORD
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD
)
DIPROP_BUFFERSIZE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
TRACE
(
"buffersize = %
ld
\n
"
,
pd
->
dwData
);
TRACE
(
"buffersize = %
d
\n
"
,
pd
->
dwData
);
if
(
This
->
data_queue
)
{
This
->
data_queue
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
data_queue
,
pd
->
dwData
*
sizeof
(
DIDEVICEOBJECTDATA
));
}
else
{
...
...
@@ -1125,14 +1126,14 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
if
(
ph
->
dwHow
==
DIPH_DEVICE
)
{
int
i
;
TRACE
(
"proprange(%
ld,%ld) all
\n
"
,
pr
->
lMin
,
pr
->
lMax
);
TRACE
(
"proprange(%
d,%d) all
\n
"
,
pr
->
lMin
,
pr
->
lMax
);
for
(
i
=
0
;
i
<
This
->
df
->
dwNumObjs
;
i
++
)
{
This
->
wantmin
[
i
]
=
pr
->
lMin
;
This
->
wantmax
[
i
]
=
pr
->
lMax
;
}
}
else
{
int
obj
=
find_property_offset
(
This
,
ph
);
TRACE
(
"proprange(%
ld,%ld) obj=%d
\n
"
,
pr
->
lMin
,
pr
->
lMax
,
obj
);
TRACE
(
"proprange(%
d,%d) obj=%d
\n
"
,
pr
->
lMin
,
pr
->
lMax
,
obj
);
if
(
obj
>=
0
)
{
This
->
wantmin
[
obj
]
=
pr
->
lMin
;
This
->
wantmax
[
obj
]
=
pr
->
lMax
;
...
...
@@ -1145,13 +1146,13 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
if
(
ph
->
dwHow
==
DIPH_DEVICE
)
{
int
i
;
TRACE
(
"deadzone(%
ld) all
\n
"
,
pd
->
dwData
);
TRACE
(
"deadzone(%
d) all
\n
"
,
pd
->
dwData
);
for
(
i
=
0
;
i
<
This
->
df
->
dwNumObjs
;
i
++
)
{
This
->
deadz
[
i
]
=
pd
->
dwData
;
}
}
else
{
int
obj
=
find_property_offset
(
This
,
ph
);
TRACE
(
"deadzone(%
ld) obj=%d
\n
"
,
pd
->
dwData
,
obj
);
TRACE
(
"deadzone(%
d) obj=%d
\n
"
,
pd
->
dwData
,
obj
);
if
(
obj
>=
0
)
{
This
->
deadz
[
obj
]
=
pd
->
dwData
;
}
...
...
@@ -1263,7 +1264,7 @@ static HRESULT WINAPI JoystickAImpl_EnumObjects(
DIDEVICEOBJECTINSTANCEA
ddoi
;
int
user_offset
,
user_object
;
TRACE
(
"(this=%p,%p,%p,%08
l
x)
\n
"
,
This
,
lpCallback
,
lpvRef
,
dwFlags
);
TRACE
(
"(this=%p,%p,%p,%08x)
\n
"
,
This
,
lpCallback
,
lpvRef
,
dwFlags
);
if
(
TRACE_ON
(
dinput
))
{
TRACE
(
" - flags = "
);
_dump_EnumObjects_flags
(
dwFlags
);
...
...
@@ -1446,7 +1447,7 @@ static HRESULT WINAPI JoystickAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
if
(
obj
>=
0
)
{
pr
->
lMin
=
This
->
joydev
->
havemin
[
obj
];
pr
->
lMax
=
This
->
joydev
->
havemax
[
obj
];
TRACE
(
"range(%
ld, %l
d) obj=%d
\n
"
,
pr
->
lMin
,
pr
->
lMax
,
obj
);
TRACE
(
"range(%
d, %
d) obj=%d
\n
"
,
pr
->
lMin
,
pr
->
lMax
,
obj
);
return
DI_OK
;
}
break
;
...
...
@@ -1521,7 +1522,7 @@ static HRESULT WINAPI JoystickAImpl_EnumEffects(LPDIRECTINPUTDEVICE8A iface,
DWORD
type
=
DIEFT_GETTYPE
(
dwEffType
);
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
TRACE
(
"(this=%p,%p,%
ld) type=%l
d
\n
"
,
This
,
pvRef
,
dwEffType
,
type
);
TRACE
(
"(this=%p,%p,%
d) type=%
d
\n
"
,
This
,
pvRef
,
dwEffType
,
type
);
dei
.
dwSize
=
sizeof
(
DIEFFECTINFOA
);
...
...
@@ -1598,7 +1599,7 @@ static HRESULT WINAPI JoystickWImpl_EnumEffects(LPDIRECTINPUTDEVICE8W iface,
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
int
xfd
=
This
->
joyfd
;
TRACE
(
"(this=%p,%p,%
ld) type=%l
d fd=%d
\n
"
,
This
,
pvRef
,
dwEffType
,
type
,
xfd
);
TRACE
(
"(this=%p,%p,%
d) type=%
d fd=%d
\n
"
,
This
,
pvRef
,
dwEffType
,
type
,
xfd
);
dei
.
dwSize
=
sizeof
(
DIEFFECTINFOW
);
...
...
@@ -1728,7 +1729,7 @@ static HRESULT WINAPI JoystickAImpl_SendForceFeedbackCommand(
DWORD
dwFlags
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
TRACE
(
"(this=%p,%
l
d)
\n
"
,
This
,
dwFlags
);
TRACE
(
"(this=%p,%d)
\n
"
,
This
,
dwFlags
);
#ifdef HAVE_STRUCT_FF_EFFECT_DIRECTION
if
(
dwFlags
==
DISFFC_STOPALL
)
{
...
...
@@ -1778,7 +1779,7 @@ static HRESULT WINAPI JoystickAImpl_EnumCreatedEffectObjects(
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
EffectListItem
*
itr
=
This
->
top_effect
;
TRACE
(
"(this=%p,%p,%p,%
l
d)
\n
"
,
This
,
lpCallback
,
pvRef
,
dwFlags
);
TRACE
(
"(this=%p,%p,%p,%d)
\n
"
,
This
,
lpCallback
,
pvRef
,
dwFlags
);
if
(
!
lpCallback
)
return
DIERR_INVALIDPARAM
;
...
...
dlls/dinput/keyboard.c
View file @
7123f3e8
...
...
@@ -121,7 +121,7 @@ static void fill_keyboard_dideviceinstanceA(LPDIDEVICEINSTANCEA lpddi, DWORD ver
dwSize
=
lpddi
->
dwSize
;
TRACE
(
"%
l
d %p
\n
"
,
dwSize
,
lpddi
);
TRACE
(
"%d %p
\n
"
,
dwSize
,
lpddi
);
memset
(
lpddi
,
0
,
dwSize
);
memset
(
&
ddi
,
0
,
sizeof
(
ddi
));
...
...
@@ -145,7 +145,7 @@ static void fill_keyboard_dideviceinstanceW(LPDIDEVICEINSTANCEW lpddi, DWORD ver
dwSize
=
lpddi
->
dwSize
;
TRACE
(
"%
l
d %p
\n
"
,
dwSize
,
lpddi
);
TRACE
(
"%d %p
\n
"
,
dwSize
,
lpddi
);
memset
(
lpddi
,
0
,
dwSize
);
memset
(
&
ddi
,
0
,
sizeof
(
ddi
));
...
...
@@ -284,14 +284,14 @@ static HRESULT WINAPI SysKeyboardAImpl_SetProperty(
SysKeyboardImpl
*
This
=
(
SysKeyboardImpl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
ph
);
TRACE
(
"(size=%ld,headersize=%ld,obj=%ld,how=%l
d
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
TRACE
(
"(size=%d,headersize=%d,obj=%d,how=%
d
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
if
(
!
HIWORD
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD
)
DIPROP_BUFFERSIZE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
TRACE
(
"(buffersize=%
ld)
\n
"
,
pd
->
dwData
);
TRACE
(
"(buffersize=%
d)
\n
"
,
pd
->
dwData
);
if
(
This
->
acquired
)
return
DIERR_INVALIDPARAM
;
...
...
@@ -315,14 +315,14 @@ static HRESULT WINAPI SysKeyboardAImpl_GetProperty(
SysKeyboardImpl
*
This
=
(
SysKeyboardImpl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
ph
);
TRACE
(
"(size=%ld,headersize=%ld,obj=%ld,how=%l
d
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
TRACE
(
"(size=%d,headersize=%d,obj=%d,how=%
d
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
if
(
!
HIWORD
(
rguid
))
{
switch
(
LOWORD
(
rguid
))
{
case
(
DWORD
)
DIPROP_BUFFERSIZE
:
{
LPDIPROPDWORD
pd
=
(
LPDIPROPDWORD
)
ph
;
TRACE
(
"(buffersize=%
ld)
\n
"
,
pd
->
dwData
);
TRACE
(
"(buffersize=%
d)
\n
"
,
pd
->
dwData
);
if
(
This
->
acquired
)
return
DIERR_INVALIDPARAM
;
...
...
@@ -344,7 +344,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceState(
)
{
SysKeyboardImpl
*
This
=
(
SysKeyboardImpl
*
)
iface
;
TRACE
(
"(%p)->(%
l
d,%p)
\n
"
,
This
,
len
,
ptr
);
TRACE
(
"(%p)->(%d,%p)
\n
"
,
This
,
len
,
ptr
);
if
(
This
->
acquired
==
0
)
return
DIERR_NOTACQUIRED
;
...
...
@@ -379,7 +379,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
HRESULT
ret
=
DI_OK
;
int
len
;
TRACE
(
"(%p) %p -> %p(%
ld) x%ld, 0x%08l
x
\n
"
,
TRACE
(
"(%p) %p -> %p(%
d) x%d, 0x%08
x
\n
"
,
This
,
dod
,
entries
,
entries
?
*
entries
:
0
,
dodsize
,
flags
);
if
(
!
This
->
acquired
)
...
...
@@ -421,7 +421,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
LeaveCriticalSection
(
&
This
->
crit
);
TRACE
(
"Returning %
l
d events queued
\n
"
,
*
entries
);
TRACE
(
"Returning %d events queued
\n
"
,
*
entries
);
return
ret
;
}
...
...
@@ -435,7 +435,7 @@ static HRESULT WINAPI SysKeyboardAImpl_EnumObjects(
DIDEVICEOBJECTINSTANCEA
ddoi
;
int
i
;
TRACE
(
"(this=%p,%p,%p,%08
l
x)
\n
"
,
This
,
lpCallback
,
lpvRef
,
dwFlags
);
TRACE
(
"(this=%p,%p,%p,%08x)
\n
"
,
This
,
lpCallback
,
lpvRef
,
dwFlags
);
if
(
TRACE_ON
(
dinput
))
{
TRACE
(
" - flags = "
);
_dump_EnumObjects_flags
(
dwFlags
);
...
...
@@ -595,7 +595,7 @@ SysKeyboardAImpl_GetObjectInfo(
DIDEVICEOBJECTINSTANCEA
ddoi
;
DWORD
dwSize
=
pdidoi
->
dwSize
;
TRACE
(
"(this=%p,%p,%
ld,0x%08l
x)
\n
"
,
This
,
pdidoi
,
dwObj
,
dwHow
);
TRACE
(
"(this=%p,%p,%
d,0x%08
x)
\n
"
,
This
,
pdidoi
,
dwObj
,
dwHow
);
if
(
dwHow
==
DIPH_BYID
)
{
WARN
(
" querying by id not supported yet...
\n
"
);
...
...
@@ -628,7 +628,7 @@ static HRESULT WINAPI SysKeyboardWImpl_GetObjectInfo(LPDIRECTINPUTDEVICE8W iface
DIDEVICEOBJECTINSTANCEW
ddoi
;
DWORD
dwSize
=
pdidoi
->
dwSize
;
TRACE
(
"(this=%p,%p,%
ld,0x%08l
x)
\n
"
,
This
,
pdidoi
,
dwObj
,
dwHow
);
TRACE
(
"(this=%p,%p,%
d,0x%08
x)
\n
"
,
This
,
pdidoi
,
dwObj
,
dwHow
);
if
(
dwHow
==
DIPH_BYID
)
{
WARN
(
" querying by id not supported yet...
\n
"
);
...
...
dlls/dinput/mouse.c
View file @
7123f3e8
...
...
@@ -161,7 +161,7 @@ static void fill_mouse_dideviceinstanceA(LPDIDEVICEINSTANCEA lpddi, DWORD versio
dwSize
=
lpddi
->
dwSize
;
TRACE
(
"%
l
d %p
\n
"
,
dwSize
,
lpddi
);
TRACE
(
"%d %p
\n
"
,
dwSize
,
lpddi
);
memset
(
lpddi
,
0
,
dwSize
);
memset
(
&
ddi
,
0
,
sizeof
(
ddi
));
...
...
@@ -185,7 +185,7 @@ static void fill_mouse_dideviceinstanceW(LPDIDEVICEINSTANCEW lpddi, DWORD versio
dwSize
=
lpddi
->
dwSize
;
TRACE
(
"%
l
d %p
\n
"
,
dwSize
,
lpddi
);
TRACE
(
"%d %p
\n
"
,
dwSize
,
lpddi
);
memset
(
lpddi
,
0
,
dwSize
);
memset
(
&
ddi
,
0
,
sizeof
(
ddi
));
...
...
@@ -358,7 +358,7 @@ static HRESULT WINAPI SysMouseAImpl_SetCooperativeLevel(
{
SysMouseImpl
*
This
=
(
SysMouseImpl
*
)
iface
;
TRACE
(
"(this=%p,%p,0x%08
lx)
\n
"
,
This
,
hwnd
,
dwflags
);
TRACE
(
"(this=%p,%p,0x%08
x)
\n
"
,
This
,
hwnd
,
dwflags
);
if
(
TRACE_ON
(
dinput
))
{
TRACE
(
" cooperative level : "
);
...
...
@@ -490,7 +490,7 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
}
}
TRACE
(
" msg %x pt %
ld %l
d (W=%d)
\n
"
,
TRACE
(
" msg %x pt %
d %
d (W=%d)
\n
"
,
wparam
,
hook
->
pt
.
x
,
hook
->
pt
.
y
,
(
!
This
->
absolute
)
&&
This
->
need_warp
);
switch
(
wparam
)
{
...
...
@@ -532,7 +532,7 @@ static LRESULT CALLBACK dinput_mouse_hook( int code, WPARAM wparam, LPARAM lpara
break
;
}
TRACE
(
"(X: %
ld - Y: %l
d L: %02x M: %02x R: %02x)
\n
"
,
TRACE
(
"(X: %
d - Y: %
d L: %02x M: %02x R: %02x)
\n
"
,
This
->
m_state
.
lX
,
This
->
m_state
.
lY
,
This
->
m_state
.
rgbButtons
[
0
],
This
->
m_state
.
rgbButtons
[
2
],
This
->
m_state
.
rgbButtons
[
1
]);
...
...
@@ -622,7 +622,7 @@ static HRESULT WINAPI SysMouseAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
This
->
mapped_center
.
x
=
This
->
win_centerX
;
This
->
mapped_center
.
y
=
This
->
win_centerY
;
MapWindowPoints
(
This
->
win
,
HWND_DESKTOP
,
&
This
->
mapped_center
,
1
);
TRACE
(
"Warping mouse to %
ld - %l
d
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
TRACE
(
"Warping mouse to %
d - %
d
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
SetCursorPos
(
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
This
->
last_warped
=
GetCurrentTime
();
...
...
@@ -664,7 +664,7 @@ static HRESULT WINAPI SysMouseAImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
/* And put the mouse cursor back where it was at acquire time */
if
(
This
->
absolute
==
0
)
{
TRACE
(
" warping mouse back to (%
ld , %l
d)
\n
"
,
This
->
org_coords
.
x
,
This
->
org_coords
.
y
);
TRACE
(
" warping mouse back to (%
d , %
d)
\n
"
,
This
->
org_coords
.
x
,
This
->
org_coords
.
y
);
SetCursorPos
(
This
->
org_coords
.
x
,
This
->
org_coords
.
y
);
}
...
...
@@ -685,8 +685,8 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
if
(
This
->
acquired
==
0
)
return
DIERR_NOTACQUIRED
;
EnterCriticalSection
(
&
(
This
->
crit
));
TRACE
(
"(this=%p,0x%08
l
x,%p):
\n
"
,
This
,
len
,
ptr
);
TRACE
(
"(X: %
ld - Y: %ld - Z: %l
d L: %02x M: %02x R: %02x)
\n
"
,
TRACE
(
"(this=%p,0x%08x,%p):
\n
"
,
This
,
len
,
ptr
);
TRACE
(
"(X: %
d - Y: %d - Z: %
d L: %02x M: %02x R: %02x)
\n
"
,
This
->
m_state
.
lX
,
This
->
m_state
.
lY
,
This
->
m_state
.
lZ
,
This
->
m_state
.
rgbButtons
[
0
],
This
->
m_state
.
rgbButtons
[
2
],
This
->
m_state
.
rgbButtons
[
1
]);
...
...
@@ -707,7 +707,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
LeaveCriticalSection
(
&
(
This
->
crit
));
return
DIERR_GENERIC
;
}
TRACE
(
"Warping mouse to %
ld - %l
d
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
TRACE
(
"Warping mouse to %
d - %
d
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
SetCursorPos
(
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
This
->
last_warped
=
GetCurrentTime
();
...
...
@@ -736,7 +736,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
DWORD
len
;
int
nqtail
=
0
;
TRACE
(
"(%p)->(dods=%
ld,dod=%p,entries=%p (%ld)%s,fl=0x%08l
x%s)
\n
"
,
This
,
dodsize
,
dod
,
TRACE
(
"(%p)->(dods=%
d,dod=%p,entries=%p (%d)%s,fl=0x%08
x%s)
\n
"
,
This
,
dodsize
,
dod
,
entries
,
*
entries
,
*
entries
==
INFINITE
?
" (INFINITE)"
:
""
,
flags
,
(
flags
&
DIGDD_PEEK
)
?
" (DIGDD_PEEK)"
:
""
);
...
...
@@ -756,12 +756,12 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
if
(
!
(
flags
&
DIGDD_PEEK
))
{
if
(
len
)
TRACE
(
"Application discarding %
l
d event(s).
\n
"
,
len
);
TRACE
(
"Application discarding %d event(s).
\n
"
,
len
);
nqtail
=
This
->
queue_tail
+
len
;
while
(
nqtail
>=
This
->
queue_len
)
nqtail
-=
This
->
queue_len
;
}
else
{
TRACE
(
"Telling application that %
l
d event(s) are in the queue.
\n
"
,
len
);
TRACE
(
"Telling application that %d event(s) are in the queue.
\n
"
,
len
);
}
}
else
{
if
(
dodsize
<
sizeof
(
DIDEVICEOBJECTDATA_DX3
))
{
...
...
@@ -771,13 +771,13 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
}
if
(
len
)
TRACE
(
"Application retrieving %
l
d event(s):
\n
"
,
len
);
TRACE
(
"Application retrieving %d event(s):
\n
"
,
len
);
*
entries
=
0
;
nqtail
=
This
->
queue_tail
;
while
(
len
)
{
/* Copy the buffered data into the application queue */
TRACE
(
" - queuing Offs:%2
ld Data:%5ld TS:%8ld Seq:%8l
d at address %p from queue tail %4d
\n
"
,
TRACE
(
" - queuing Offs:%2
d Data:%5d TS:%8d Seq:%8
d at address %p from queue tail %4d
\n
"
,
(
This
->
data_queue
)
->
dwOfs
,
(
This
->
data_queue
)
->
dwData
,
(
This
->
data_queue
)
->
dwTimeStamp
,
...
...
@@ -802,7 +802,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE8A iface,
if
(
This
->
need_warp
==
WARP_NEEDED
&&
(
GetCurrentTime
()
-
This
->
last_warped
>
10
))
{
if
(
!
dinput_window_check
(
This
))
return
DIERR_GENERIC
;
TRACE
(
"Warping mouse to %
ld - %l
d
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
TRACE
(
"Warping mouse to %
d - %
d
\n
"
,
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
SetCursorPos
(
This
->
mapped_center
.
x
,
This
->
mapped_center
.
y
);
This
->
last_warped
=
GetCurrentTime
();
...
...
@@ -831,7 +831,7 @@ static HRESULT WINAPI SysMouseAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
case
(
DWORD
)
DIPROP_BUFFERSIZE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
TRACE
(
"buffersize = %ld
\n
"
,
pd
->
dwData
);
TRACE
(
"buffersize = %d
\n
"
,
pd
->
dwData
);
This
->
data_queue
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pd
->
dwData
*
sizeof
(
DIDEVICEOBJECTDATA
));
This
->
queue_head
=
0
;
...
...
@@ -979,7 +979,7 @@ static HRESULT WINAPI SysMouseAImpl_EnumObjects(
SysMouseImpl
*
This
=
(
SysMouseImpl
*
)
iface
;
DIDEVICEOBJECTINSTANCEA
ddoi
;
TRACE
(
"(this=%p,%p,%p,%08
l
x)
\n
"
,
This
,
lpCallback
,
lpvRef
,
dwFlags
);
TRACE
(
"(this=%p,%p,%p,%08x)
\n
"
,
This
,
lpCallback
,
lpvRef
,
dwFlags
);
if
(
TRACE_ON
(
dinput
))
{
TRACE
(
" - flags = "
);
_dump_EnumObjects_flags
(
dwFlags
);
...
...
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