X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c03f52d02470366a1b1370d918fa5779997e7f0..f0e5d5d22ce012e9312a63175d79c0f4a8d444be:/include/wx/msw/private/keyboard.h diff --git a/include/wx/msw/private/keyboard.h b/include/wx/msw/private/keyboard.h index 5bc8cc7445..e9b0ea6296 100644 --- a/include/wx/msw/private/keyboard.h +++ b/include/wx/msw/private/keyboard.h @@ -25,7 +25,12 @@ namespace wxMSWKeyboard // Translate MSW virtual key code to wx key code. lParam is used to distinguish // between numpad and extended version of the keys, extended is assumed by // default if lParam == 0. -WXDLLIMPEXP_CORE int VKToWX(WXWORD vk, WXLPARAM lParam = 0); +// +// Returns WXK_NONE if translation couldn't be done at all (this happens e.g. +// for dead keys and in this case uc will be WXK_NONE too) or if the key +// corresponds to a non-Latin-1 character in which case uc is filled with its +// Unicode value. +WXDLLIMPEXP_CORE int VKToWX(WXWORD vk, WXLPARAM lParam = 0, wchar_t *uc = NULL); // Translate wxKeyCode enum element (passed as int for compatibility reasons) // to MSW virtual key code. isExtended is set to true if the key corresponds to