Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
mgutils
Commits
a9e75d20
Commit
a9e75d20
authored
7 years ago
by
Vincent Wei
Browse files
Options
Download
Email Patches
Plain Diff
use HIBYTE_WORD16 for keymap
parent
3c571161
master
dev-3-4
dev-4-1
rel-3-2
rel-4-0
rel-5-0
ver-5-0-11
ver-5-0-10
ver-5-0-9
ver-5-0-6
ver-5-0-3
ver-5-0-2
ver-5-0-0
ver-4-0-8
ver-4-0-7
ver-4-0-5
ver-4-0-4
ver-4-0-0
dev-4-9-1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vcongui/key.c
+2
-2
src/vcongui/key.c
with
2 additions
and
2 deletions
+2
-2
src/vcongui/key.c
View file @
a9e75d20
...
...
@@ -188,7 +188,7 @@ void handle_scancode_on_keydown (int scancode, key_info* kinfo)
key_map
=
__mg_key_maps
[
shift_final
];
if
(
key_map
!=
NULL
)
{
keysym
=
key_map
[
scancode
];
type
=
HIBYTE
(
keysym
);
type
=
HIBYTE
_WORD16
(
keysym
);
if
(
type
>=
0xf0
)
{
type
-=
0xf0
;
...
...
@@ -222,7 +222,7 @@ void handle_scancode_on_keyup (int scancode, key_info* kinfo)
key_map
=
__mg_key_maps
[
shift_final
];
if
(
key_map
!=
NULL
)
{
keysym
=
key_map
[
scancode
];
type
=
HIBYTE
(
keysym
);
type
=
HIBYTE
_WORD16
(
keysym
);
if
(
type
>=
0xf0
)
{
type
-=
0xf0
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help