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
44685c23
Commit
44685c23
authored
Nov 26, 2006
by
Kevin Koltzau
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Process browser and multimedia key events.
parent
80db3ad8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
keyboard.c
dlls/winex11.drv/keyboard.c
+49
-0
No files found.
dlls/winex11.drv/keyboard.c
View file @
44685c23
...
...
@@ -1076,6 +1076,45 @@ static const WORD nonchar_key_scan[256] =
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x153
/* FFF8 */
};
static
const
WORD
xfree86_vendor_key_vkey
[
256
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1008FF00 */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1008FF08 */
0
,
VK_VOLUME_DOWN
,
VK_VOLUME_MUTE
,
VK_VOLUME_UP
,
/* 1008FF10 */
VK_MEDIA_PLAY_PAUSE
,
VK_MEDIA_STOP
,
VK_MEDIA_PREV_TRACK
,
VK_MEDIA_NEXT_TRACK
,
0
,
VK_LAUNCH_MAIL
,
0
,
VK_BROWSER_SEARCH
,
/* 1008FF18 */
0
,
0
,
0
,
VK_BROWSER_HOME
,
0
,
0
,
0
,
0
,
0
,
0
,
VK_BROWSER_BACK
,
VK_BROWSER_FOR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 */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1008FFD8 */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1008FFE0 */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1008FFE8 */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
/* 1008FFF0 */
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
/* 1008FFF8 */
};
/* Returns the Windows virtual key code associated with the X event <e> */
/* x11 lock must be held */
...
...
@@ -1623,6 +1662,11 @@ void X11DRV_InitKeyboard(void)
scan
=
nonchar_key_scan
[
keysym
&
0xff
];
/* set extended bit when necessary */
if
(
scan
&
0x100
)
vkey
|=
0x100
;
}
else
if
((
keysym
>>
8
)
==
0x1008FF
)
{
/* XFree86 vendor keys */
vkey
=
xfree86_vendor_key_vkey
[
keysym
&
0xff
];
/* All vendor keys are extended with a scan code of 0 per testing on WinXP */
scan
=
0x100
;
vkey
|=
0x100
;
}
else
if
(
keysym
==
0x20
)
{
/* Spacebar */
vkey
=
VK_SPACE
;
scan
=
0x39
;
...
...
@@ -2486,6 +2530,11 @@ INT X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
ret
=
1
;
goto
found
;
}
else
if
((
keysym
>>
8
)
==
0x1008FF
)
{
bufW
[
0
]
=
0
;
ret
=
0
;
goto
found
;
}
else
{
const
char
*
ksname
;
...
...
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