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
eb6cec16
Commit
eb6cec16
authored
May 30, 2011
by
Vitaliy Margolen
Committed by
Alexandre Julliard
May 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Keyboard does not support DIPROP_RANGE property.
parent
e47ef8ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
keyboard.c
dlls/dinput/keyboard.c
+2
-0
keyboard.c
dlls/dinput/tests/keyboard.c
+23
-0
No files found.
dlls/dinput/keyboard.c
View file @
eb6cec16
...
...
@@ -509,6 +509,8 @@ static HRESULT WINAPI SysKeyboardWImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface,
memcpy
(
ps
->
wsz
,
didoi
.
tszName
,
sizeof
(
ps
->
wsz
));
return
hr
;
}
case
(
DWORD_PTR
)
DIPROP_RANGE
:
return
DIERR_UNSUPPORTED
;
default:
return
IDirectInputDevice2AImpl_GetProperty
(
IDirectInputDevice8A_from_impl
(
This
),
rguid
,
pdiph
);
}
...
...
dlls/dinput/tests/keyboard.c
View file @
eb6cec16
...
...
@@ -130,6 +130,28 @@ static void test_set_coop(LPDIRECTINPUT pDI, HWND hwnd)
if
(
pKeyboard
)
IUnknown_Release
(
pKeyboard
);
}
static
void
test_get_prop
(
LPDIRECTINPUT
pDI
,
HWND
hwnd
)
{
HRESULT
hr
;
LPDIRECTINPUTDEVICE
pKeyboard
=
NULL
;
DIPROPRANGE
diprg
;
hr
=
IDirectInput_CreateDevice
(
pDI
,
&
GUID_SysKeyboard
,
&
pKeyboard
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirectInput_CreateDevice() failed: %08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
memset
(
&
diprg
,
0
,
sizeof
(
diprg
));
diprg
.
diph
.
dwSize
=
sizeof
(
DIPROPRANGE
);
diprg
.
diph
.
dwHeaderSize
=
sizeof
(
DIPROPHEADER
);
diprg
.
diph
.
dwHow
=
DIPH_DEVICE
;
diprg
.
diph
.
dwObj
=
0
;
hr
=
IDirectInputDevice_GetProperty
(
pKeyboard
,
DIPROP_RANGE
,
&
diprg
.
diph
);
ok
(
hr
==
DIERR_UNSUPPORTED
,
"IDirectInputDevice_GetProperty() did not return DIPROP_RANGE but: %08x
\n
"
,
hr
);
if
(
pKeyboard
)
IUnknown_Release
(
pKeyboard
);
}
static
void
keyboard_tests
(
DWORD
version
)
{
HRESULT
hr
;
...
...
@@ -155,6 +177,7 @@ static void keyboard_tests(DWORD version)
{
acquire_tests
(
pDI
,
hwnd
);
test_set_coop
(
pDI
,
hwnd
);
test_get_prop
(
pDI
,
hwnd
);
}
DestroyWindow
(
hwnd
);
...
...
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