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
8c768fb4
Commit
8c768fb4
authored
Nov 17, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Nov 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Track which vkeys have already been assigned to keycodes.
parent
30f691f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
keyboard.c
dlls/winex11.drv/keyboard.c
+4
-0
No files found.
dlls/winex11.drv/keyboard.c
View file @
8c768fb4
...
...
@@ -1561,6 +1561,7 @@ void X11DRV_InitKeyboard(void)
int
keyc
,
i
,
keyn
,
syms
;
char
ckey
[
4
]
=
{
0
,
0
,
0
,
0
};
const
char
(
*
lkey
)[
MAIN_LEN
][
4
];
char
vkey_used
[
256
]
=
{
0
};
wine_tsx11_lock
();
XDisplayKeycodes
(
display
,
&
min_keycode
,
&
max_keycode
);
...
...
@@ -1732,6 +1733,9 @@ void X11DRV_InitKeyboard(void)
TRACE
(
"keycode %04x => vkey %04x
\n
"
,
e2
.
keycode
,
vkey
);
keyc2vkey
[
e2
.
keycode
]
=
vkey
;
keyc2scan
[
e2
.
keycode
]
=
scan
;
if
((
vkey
&
0xff
)
&&
vkey_used
[(
vkey
&
0xff
)])
WARN
(
"vkey %04x is being used by more than one keycode
\n
"
,
vkey
);
vkey_used
[(
vkey
&
0xff
)]
=
1
;
}
/* for */
/* If some keys still lack scancodes, assign some arbitrary ones to them now */
...
...
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