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
4edea8a9
Commit
4edea8a9
authored
Mar 16, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput/tests: Test SaveActionMap effect on DIPROP_BUFFERSIZE property.
parent
2750d924
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
joystick8.c
dlls/dinput/tests/joystick8.c
+22
-0
No files found.
dlls/dinput/tests/joystick8.c
View file @
4edea8a9
...
...
@@ -725,6 +725,15 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
{.
objid
=
TRUE
},
{.
objid
=
TRUE
,
.
how
=
TRUE
},
};
DIPROPDWORD
prop_dword
=
{
.
diph
=
{
.
dwHeaderSize
=
sizeof
(
DIPROPHEADER
),
.
dwSize
=
sizeof
(
DIPROPDWORD
),
.
dwHow
=
DIPH_DEVICE
,
}
};
DIPROPSTRING
prop_username
=
{
.
diph
=
...
...
@@ -900,6 +909,11 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
ok
(
hr
==
DI_OK
,
"GetProperty returned %#lx
\n
"
,
hr
);
ok
(
prop_pointer
.
uData
==
0
,
"got uData %#Ix
\n
"
,
prop_pointer
.
uData
);
hr
=
IDirectInputDevice8_GetProperty
(
device
,
DIPROP_BUFFERSIZE
,
&
prop_dword
.
diph
);
ok
(
hr
==
DI_OK
,
"GetProperty returned %#lx
\n
"
,
hr
);
todo_wine
ok
(
prop_dword
.
dwData
==
0
,
"got dwData %#lx
\n
"
,
prop_dword
.
dwData
);
/* saving action map actually does nothing */
...
...
@@ -946,6 +960,10 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
todo_wine
ok
(
prop_pointer
.
uData
==
8
,
"got uData %#Ix
\n
"
,
prop_pointer
.
uData
);
hr
=
IDirectInputDevice8_GetProperty
(
device
,
DIPROP_BUFFERSIZE
,
&
prop_dword
.
diph
);
ok
(
hr
==
DI_OK
,
"GetProperty returned %#lx
\n
"
,
hr
);
ok
(
prop_dword
.
dwData
==
32
,
"got dwData %#lx
\n
"
,
prop_dword
.
dwData
);
action_format
=
action_format_2
;
action_format
.
rgoAction
=
actions
;
...
...
@@ -990,6 +1008,10 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
todo_wine
ok
(
prop_pointer
.
uData
==
-
1
,
"got uData %#Ix
\n
"
,
prop_pointer
.
uData
);
hr
=
IDirectInputDevice8_GetProperty
(
device
,
DIPROP_BUFFERSIZE
,
&
prop_dword
.
diph
);
ok
(
hr
==
DI_OK
,
"GetProperty returned %#lx
\n
"
,
hr
);
ok
(
prop_dword
.
dwData
==
32
,
"got dwData %#lx
\n
"
,
prop_dword
.
dwData
);
/* DIDSAM_NOUSER flag clears the device user property */
...
...
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