winapi
provides wrappers around WinAPI functions.- Documentation: godoc
APIs wrapped:
- Configuration
- Hooks
- Keyboard Input
- Messages and Message Queues
- Mouse Input
- Multiple Document Interface
- Raw Input
- Timers
WINAPI uses union
which is not available in Go. To handle that, variants of structures and functions have been created for some APIs.
The structures and functions which have variants are mentioned below.
GetRawInputDeviceInfo
for uiCommand RIDI_PREPARSEDDATA
isn't implemented.
Abbreviation | Meaning |
---|---|
M | Mouse |
MB | MouseButtons |
MBI | MouseButtonInformation |
K | Keyboard |
HID | Human Interface Device |
WINAPI | Go |
---|---|
RAWINPUT | RAWINPUT_MB RAWINPUT_MBI RAWINPUT_K RAWINPUT_HID |
RAWMOUSE | RAWMOUSEBUTTONS RAWMOUSEBUTTONINFO |
RID_DEVICE_INFO | RIDI_M RIDI_K RIDI_HID |
WINAPI | Go |
---|---|
DefRawInputProc | DefRawInputProcMB DefRawInputProcMBI DefRawInputProcK DefRawInputProcHID |
GetRawInputBuffer | GetRawInputBufferMB GetRawInputBufferMBI GetRawInputBufferK GetRawInputBufferHID |
GetRawInputData | GetRawInputDataMB GetRawInputDataMBI GetRawInputDataK GetRawInputDataHID |
GetRawInputDeviceInfo | GetRawInputDeviceName GetRawInputDeviceInfoM GetRawInputDeviceInfoK GetRawInputDeviceInfoHID |
Abbreviation | Meaning |
---|---|
M | Mouse |
K | Keyboard |
HW | Hardware |
WINAPI | Go |
---|---|
INPUT | INPUT_M INPUT_K INPUT_HW |
WINAPI | Go |
---|---|
SendInput | SendInputM SendInputK SendInputHW |