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
92cbeed9
Commit
92cbeed9
authored
May 03, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a default GetKeyboardLayout implementation.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f044f401
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
23 deletions
+6
-23
driver.c
dlls/user32/driver.c
+1
-1
input.c
dlls/user32/input.c
+5
-1
keyboard.c
dlls/wineandroid.drv/keyboard.c
+0
-20
wineandroid.drv.spec
dlls/wineandroid.drv/wineandroid.drv.spec
+0
-1
No files found.
dlls/user32/driver.c
View file @
92cbeed9
...
...
@@ -208,7 +208,7 @@ static INT CDECL nulldrv_GetKeyNameText( LONG lparam, LPWSTR buffer, INT size )
static
HKL
CDECL
nulldrv_GetKeyboardLayout
(
DWORD
thread_id
)
{
return
0
;
return
(
HKL
)
~
0
;
/* use default implementation */
}
static
BOOL
CDECL
nulldrv_GetKeyboardLayoutName
(
LPWSTR
name
)
...
...
dlls/user32/input.c
View file @
92cbeed9
...
...
@@ -1083,7 +1083,11 @@ UINT WINAPI GetKBCodePage(void)
*/
HKL
WINAPI
GetKeyboardLayout
(
DWORD
thread_id
)
{
return
USER_Driver
->
pGetKeyboardLayout
(
thread_id
);
HKL
layout
;
if
((
layout
=
USER_Driver
->
pGetKeyboardLayout
(
thread_id
))
!=
(
HKL
)
~
0
)
return
layout
;
return
get_locale_kbd_layout
();
}
/****************************************************************************
...
...
dlls/wineandroid.drv/keyboard.c
View file @
92cbeed9
...
...
@@ -879,26 +879,6 @@ UINT CDECL ANDROID_MapVirtualKeyEx( UINT code, UINT maptype, HKL hkl )
/***********************************************************************
* ANDROID_GetKeyboardLayout
*/
HKL
CDECL
ANDROID_GetKeyboardLayout
(
DWORD
thread_id
)
{
ULONG_PTR
layout
=
GetUserDefaultLCID
();
LANGID
langid
;
static
int
once
;
langid
=
PRIMARYLANGID
(
LANGIDFROMLCID
(
layout
));
if
(
langid
==
LANG_CHINESE
||
langid
==
LANG_JAPANESE
||
langid
==
LANG_KOREAN
)
layout
=
MAKELONG
(
layout
,
0xe001
);
/* IME */
else
layout
|=
layout
<<
16
;
if
(
!
once
++
)
FIXME
(
"returning %lx
\n
"
,
layout
);
return
(
HKL
)
layout
;
}
/***********************************************************************
* ANDROID_VkKeyScanEx
*/
SHORT
CDECL
ANDROID_VkKeyScanEx
(
WCHAR
ch
,
HKL
hkl
)
...
...
dlls/wineandroid.drv/wineandroid.drv.spec
View file @
92cbeed9
...
...
@@ -5,7 +5,6 @@
# USER driver
@ cdecl GetKeyNameText(long ptr long) ANDROID_GetKeyNameText
@ cdecl GetKeyboardLayout(long) ANDROID_GetKeyboardLayout
@ cdecl MapVirtualKeyEx(long long long) ANDROID_MapVirtualKeyEx
@ cdecl VkKeyScanEx(long long) ANDROID_VkKeyScanEx
@ cdecl SetCursor(long) ANDROID_SetCursor
...
...
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