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
8dac79d3
Commit
8dac79d3
authored
Feb 27, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Mar 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add few special cases for key mappings.
parent
392537bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
keyboard.c
dlls/dinput/keyboard.c
+11
-5
No files found.
dlls/dinput/keyboard.c
View file @
8dac79d3
...
...
@@ -87,11 +87,17 @@ static int KeyboardCallback( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARAM
TRACE
(
"(%p) %ld,%ld
\n
"
,
iface
,
wparam
,
lparam
);
dik_code
=
map_dik_code
(
hook
->
scanCode
&
0xff
,
hook
->
vkCode
);
/* R-Shift is special - it is an extended key with separate scan code */
if
(
hook
->
flags
&
LLKHF_EXTENDED
&&
dik_code
!=
0x36
)
dik_code
|=
0x80
;
switch
(
hook
->
vkCode
)
{
/* R-Shift is special - it is an extended key with separate scan code */
case
VK_RSHIFT
:
dik_code
=
DIK_RSHIFT
;
break
;
case
VK_PAUSE
:
dik_code
=
DIK_PAUSE
;
break
;
case
VK_NUMLOCK
:
dik_code
=
DIK_NUMLOCK
;
break
;
case
VK_SUBTRACT
:
dik_code
=
DIK_SUBTRACT
;
break
;
default:
dik_code
=
map_dik_code
(
hook
->
scanCode
&
0xff
,
hook
->
vkCode
);
if
(
hook
->
flags
&
LLKHF_EXTENDED
)
dik_code
|=
0x80
;
}
new_diks
=
hook
->
flags
&
LLKHF_UP
?
0
:
0x80
;
/* returns now if key event already known */
...
...
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