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
2031d6c4
Commit
2031d6c4
authored
Apr 11, 1999
by
Guy Albertelli
Committed by
Alexandre Julliard
Apr 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial implementation for GetKeyNameText for new keyboard structure.
parent
869ca2f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
keyboard.c
windows/x11drv/keyboard.c
+24
-12
No files found.
windows/x11drv/keyboard.c
View file @
2031d6c4
...
...
@@ -936,23 +936,35 @@ UINT16 X11DRV_KEYBOARD_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
*/
INT16
X11DRV_KEYBOARD_GetKeyNameText
(
LONG
lParam
,
LPSTR
lpBuffer
,
INT16
nSize
)
{
#if 0
int i;
#endif
int
key
,
i
,
scanCode
;
const
char
(
*
lkey
)[
MAIN_LEN
][
4
];
FIXME
(
keyboard
,
"(%ld,<ptr>,%d): stub
\n
"
,
lParam
,
nSize
);
scanCode
=
lParam
>>
16
;
scanCode
&=
0xff
;
lkey
=
main_key_tab
[
kbd_layout
].
key
;
#if 0
lParam >>= 16;
lParam &= 0xff;
if
(
!
(
lParam
&
0x01000000
))
/* handle non-extended keys */
{
/* FIXME: need to handle "don't care" bit (0x02000000) */
for (i = 0 ; i != KeyTableSize ; i++)
if (KeyTable[i].scancode == lParam) {
lstrcpynA( lpBuffer, KeyTable[i].name, nSize );
return strlen(lpBuffer);
/* FIXME: assume return caps */
i
=
1
;
for
(
key
=
0
;
key
<
MAIN_LEN
;
key
++
)
if
(
main_key_scan
[
key
]
==
scanCode
)
{
if
((
nSize
>=
2
)
&&
lpBuffer
)
{
*
lpBuffer
=
(
*
lkey
)[
key
][
i
];
*
(
lpBuffer
+
1
)
=
0
;
return
1
;
}
#endif
else
return
0
;
}
}
FIXME
(
keyboard
,
"(%08lx,%p,%d): unsupported key
\n
"
,
lParam
,
lpBuffer
,
nSize
);
if
(
lpBuffer
&&
nSize
)
*
lpBuffer
=
0
;
return
0
;
}
...
...
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