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
9a99dc14
Commit
9a99dc14
authored
Feb 15, 2005
by
Christian Costa
Committed by
Alexandre Julliard
Feb 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetProperty method for keyboard device.
parent
db6db7cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
4 deletions
+35
-4
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+1
-1
keyboard.c
dlls/dinput/keyboard.c
+33
-2
mouse.c
dlls/dinput/mouse.c
+1
-1
No files found.
dlls/dinput/joystick_linuxinput.c
View file @
9a99dc14
...
...
@@ -978,7 +978,7 @@ static HRESULT WINAPI JoystickAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
: stub!
\n
"
,
TRACE
(
"(this=%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
if
(
TRACE_ON
(
dinput
))
...
...
dlls/dinput/keyboard.c
View file @
9a99dc14
...
...
@@ -356,6 +356,37 @@ static HRESULT WINAPI SysKeyboardAImpl_SetProperty(
return
DI_OK
;
}
static
HRESULT
WINAPI
SysKeyboardAImpl_GetProperty
(
LPDIRECTINPUTDEVICE8A
iface
,
REFGUID
rguid
,
LPDIPROPHEADER
ph
)
{
SysKeyboardImpl
*
This
=
(
SysKeyboardImpl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
ph
);
TRACE
(
"(size=%ld,headersize=%ld,obj=%ld,how=%ld
\n
"
,
ph
->
dwSize
,
ph
->
dwHeaderSize
,
ph
->
dwObj
,
ph
->
dwHow
);
if
(
!
HIWORD
(
rguid
))
{
switch
((
DWORD
)
rguid
)
{
case
(
DWORD
)
DIPROP_BUFFERSIZE
:
{
LPDIPROPDWORD
pd
=
(
LPDIPROPDWORD
)
ph
;
TRACE
(
"(buffersize=%ld)
\n
"
,
pd
->
dwData
);
if
(
This
->
acquired
)
return
DIERR_INVALIDPARAM
;
pd
->
dwData
=
This
->
buffersize
;
break
;
}
default
:
WARN
(
"Unknown type %ld
\n
"
,(
DWORD
)
rguid
);
break
;
}
}
return
DI_OK
;
}
static
HRESULT
WINAPI
SysKeyboardAImpl_GetDeviceState
(
LPDIRECTINPUTDEVICE8A
iface
,
DWORD
len
,
LPVOID
ptr
)
...
...
@@ -712,7 +743,7 @@ static IDirectInputDevice8AVtbl SysKeyboardAvt =
SysKeyboardAImpl_Release
,
SysKeyboardAImpl_GetCapabilities
,
SysKeyboardAImpl_EnumObjects
,
IDirectInputDevice2
AImpl_GetProperty
,
SysKeyboard
AImpl_GetProperty
,
SysKeyboardAImpl_SetProperty
,
SysKeyboardAImpl_Acquire
,
SysKeyboardAImpl_Unacquire
,
...
...
@@ -754,7 +785,7 @@ static IDirectInputDevice8WVtbl SysKeyboardWvt =
XCAST
(
Release
)
SysKeyboardAImpl_Release
,
XCAST
(
GetCapabilities
)
SysKeyboardAImpl_GetCapabilities
,
SysKeyboardWImpl_EnumObjects
,
XCAST
(
GetProperty
)
IDirectInputDevice2
AImpl_GetProperty
,
XCAST
(
GetProperty
)
SysKeyboard
AImpl_GetProperty
,
XCAST
(
SetProperty
)
SysKeyboardAImpl_SetProperty
,
XCAST
(
Acquire
)
SysKeyboardAImpl_Acquire
,
XCAST
(
Unacquire
)
SysKeyboardAImpl_Unacquire
,
...
...
dlls/dinput/mouse.c
View file @
9a99dc14
...
...
@@ -845,7 +845,7 @@ static HRESULT WINAPI SysMouseAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
{
SysMouseImpl
*
This
=
(
SysMouseImpl
*
)
iface
;
TRACE
(
"(this=%p,%s,%p)
: stub!
\n
"
,
TRACE
(
"(this=%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
rguid
),
pdiph
);
if
(
TRACE_ON
(
dinput
))
...
...
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