Commit e545a853 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wineandroid: Implement GetKeyboardLayout.

parent 0d565d01
......@@ -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;
}
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment