Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
11ef39af
Commit
11ef39af
authored
Nov 12, 2019
by
Derek Lesho
Committed by
Alexandre Julliard
Dec 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
users/tests: Test scan code prefix for MAPVK_VK_TO_VSC_EX.
Signed-off-by:
Derek Lesho
<
dlesho@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6da06330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
input.c
dlls/user32/tests/input.c
+10
-0
No files found.
dlls/user32/tests/input.c
View file @
11ef39af
...
...
@@ -1873,6 +1873,16 @@ static void test_key_map(void)
vkey
,
numpad_scan
);
}
}
/* test the scan code prefixes of the right variant of a keys */
s
=
MapVirtualKeyExA
(
VK_RCONTROL
,
MAPVK_VK_TO_VSC
,
kl
);
ok
(
s
>>
8
==
0x00
,
"Scan code prefixes should not be returned when not using MAPVK_VK_TO_VSC_EX %#1x
\n
"
,
s
>>
8
);
s
=
MapVirtualKeyExA
(
VK_RCONTROL
,
MAPVK_VK_TO_VSC_EX
,
kl
);
ok
(
s
>>
8
==
0xE0
||
broken
(
s
==
0
),
"Scan code prefix for VK_RCONTROL should be 0xE0 when MAPVK_VK_TO_VSC_EX is set, was %#1x
\n
"
,
s
>>
8
);
s
=
MapVirtualKeyExA
(
VK_RMENU
,
MAPVK_VK_TO_VSC_EX
,
kl
);
ok
(
s
>>
8
==
0xE0
||
broken
(
s
==
0
),
"Scan code prefix for VK_RMENU should be 0xE0 when MAPVK_VK_TO_VSC_EX is set, was %#1x
\n
"
,
s
>>
8
);
s
=
MapVirtualKeyExA
(
VK_RSHIFT
,
MAPVK_VK_TO_VSC_EX
,
kl
);
ok
(
s
>>
8
==
0x00
||
broken
(
s
==
0
),
"The scan code shouldn't have a prefix, got %#1x
\n
"
,
s
>>
8
);
}
#define shift 1
...
...
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