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
56989b6e
Commit
56989b6e
authored
Apr 26, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use constants instead of magic numbers in GetKeyNameText.
parent
964687d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
keyboard.c
dlls/winex11.drv/keyboard.c
+2
-3
No files found.
dlls/winex11.drv/keyboard.c
View file @
56989b6e
...
...
@@ -2158,8 +2158,7 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
scanCode
=
lParam
>>
16
;
scanCode
&=
0x1ff
;
/* keep "extended-key" flag with code */
/* FIXME: should use MVK type 3 (NT version that distinguishes right and left */
vkey
=
X11DRV_MapVirtualKeyEx
(
scanCode
,
1
,
X11DRV_GetKeyboardLayout
(
0
));
vkey
=
X11DRV_MapVirtualKeyEx
(
scanCode
,
MAPVK_VSC_TO_VK_EX
,
X11DRV_GetKeyboardLayout
(
0
));
/* handle "don't care" bit (0x02000000) */
if
(
!
(
lParam
&
0x02000000
))
{
...
...
@@ -2181,7 +2180,7 @@ INT X11DRV_GetKeyNameText(LONG lParam, LPWSTR lpBuffer, INT nSize)
}
}
ansi
=
X11DRV_MapVirtualKeyEx
(
vkey
,
2
,
X11DRV_GetKeyboardLayout
(
0
));
ansi
=
X11DRV_MapVirtualKeyEx
(
vkey
,
MAPVK_VK_TO_CHAR
,
X11DRV_GetKeyboardLayout
(
0
));
TRACE
(
"scan 0x%04x, vkey 0x%04x, ANSI 0x%04x
\n
"
,
scanCode
,
vkey
,
ansi
);
/* first get the name of the "regular" keys which is the Upper case
...
...
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