MapVirtualKey function Null safety user32

int MapVirtualKey(
  1. int uCode,
  2. int uMapType
)

Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.

UINT MapVirtualKeyW(
  UINT uCode,
  UINT uMapType
);

Implementation

int MapVirtualKey(int uCode, int uMapType) {
  final _MapVirtualKey = _user32.lookupFunction<
      Uint32 Function(Uint32 uCode, Uint32 uMapType),
      int Function(int uCode, int uMapType)>('MapVirtualKeyW');
  return _MapVirtualKey(uCode, uMapType);
}