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
e545a853
Commit
e545a853
authored
Jun 09, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Implement GetKeyboardLayout.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0d565d01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
keyboard.c
dlls/wineandroid.drv/keyboard.c
+19
-0
wineandroid.drv.spec
dlls/wineandroid.drv/wineandroid.drv.spec
+1
-0
No files found.
dlls/wineandroid.drv/keyboard.c
View file @
e545a853
...
...
@@ -885,3 +885,22 @@ UINT CDECL ANDROID_MapVirtualKeyEx( UINT code, UINT maptype, HKL hkl )
TRACE_
(
key
)(
"returning 0x%04x
\n
"
,
ret
);
return
ret
;
}
/***********************************************************************
* ANDROID_GetKeyboardLayout
*/
HKL
CDECL
ANDROID_GetKeyboardLayout
(
DWORD
thread_id
)
{
ULONG_PTR
layout
=
GetUserDefaultLCID
();
LANGID
langid
;
langid
=
PRIMARYLANGID
(
LANGIDFROMLCID
(
layout
));
if
(
langid
==
LANG_CHINESE
||
langid
==
LANG_JAPANESE
||
langid
==
LANG_KOREAN
)
layout
=
MAKELONG
(
layout
,
0xe001
);
/* IME */
else
layout
|=
layout
<<
16
;
FIXME
(
"returning %lx
\n
"
,
layout
);
return
(
HKL
)
layout
;
}
dlls/wineandroid.drv/wineandroid.drv.spec
View file @
e545a853
...
...
@@ -5,6 +5,7 @@
# USER driver
@ cdecl GetKeyNameText(long ptr long) ANDROID_GetKeyNameText
@ cdecl GetKeyboardLayout(long) ANDROID_GetKeyboardLayout
@ cdecl MapVirtualKeyEx(long long long) ANDROID_MapVirtualKeyEx
@ cdecl ToUnicodeEx(long long ptr ptr long long long) ANDROID_ToUnicodeEx
@ cdecl EnumDisplayMonitors(long ptr ptr long) ANDROID_EnumDisplayMonitors
...
...
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