VkKeyScanEx function Null safety user32

int VkKeyScanEx(
  1. int ch,
  2. int dwhkl
)

Translates a character to the corresponding virtual-key code and shift state. The function translates the character using the input language and physical keyboard layout identified by the input locale identifier.

SHORT VkKeyScanExW(
  WCHAR ch,
  HKL   dwhkl
);

Implementation

int VkKeyScanEx(int ch, int dwhkl) {
  final _VkKeyScanEx = _user32.lookupFunction<
      Int16 Function(Uint16 ch, IntPtr dwhkl),
      int Function(int ch, int dwhkl)>('VkKeyScanExW');
  return _VkKeyScanEx(ch, dwhkl);
}