GetKeyboardState function user32
Copies the status of the 256 virtual keys to the specified buffer.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getkeyboardstate.
Implementation
Win32Result<bool> GetKeyboardState(Pointer<Uint8> lpKeyState) {
resolveGetLastError();
final result_ = _GetKeyboardState(lpKeyState);
return .new(value: result_ != FALSE, error: GetLastError());
}