Skip to content

Commit

Permalink
feat(win32-api): user32 GetRawInputData()
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jun 28, 2024
1 parent 598cf95 commit 645ce4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/win32-api/src/lib/user32/dict/G.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export class DefUser32_G extends DefUser32_F {

static GetParent = [D.HWND, [D.HWND]]

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getrawinputdata */
static GetRawInputData = [D.UINT, [S.LPRAWINPUT, D.UINT, D.LPVOID, `_Inout_ ${D.PUINT}`, D.UINT]]

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getrawinputdeviceinfow */
static GetRawInputDeviceInfoW = [D.UINT, [D.HANDLE, D.UINT, `_Inout_ ${D.LPVOID}`, D.PUINT]]

Expand Down
9 changes: 9 additions & 0 deletions packages/win32-api/src/lib/user32/dict/G.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ export class User32_G extends User32_F {

GetParent: (hWnd: T.HWND) => T.HWND

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getrawinputdata */
GetRawInputData: (
hRawInput: S.RAWINPUT_Type,
uiCommand: T.UINT,
pData: T.LPVOID | null,
pcbSize: T.PUINT,
cbSizeHeader: T.UINT,
) => T.UINT

/** https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getrawinputdeviceinfow */
GetRawInputDeviceInfoW: (
hDevice: T.HANDLE,
Expand Down

0 comments on commit 645ce4b

Please sign in to comment.