ToAscii function user32
Translates the specified virtual-key code and keyboard state to the corresponding character or characters.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-toascii.
Implementation
@pragma('vm:prefer-inline')
int ToAscii(
int uVirtKey,
int uScanCode,
Pointer<Uint8>? lpKeyState,
Pointer<Uint16> lpChar,
int uFlags,
) => _ToAscii(uVirtKey, uScanCode, lpKeyState ?? nullptr, lpChar, uFlags);