Keys are Win32 virtual-key codes
(
0x41 is A). Mouse buttons use DOM numbering: 0 left, 1 middle, 2 right, 3 back,
4 forward.Overview
Reading
isKeyDown, isMouseDown.Injection
keyDown, keyPress, mouseClick, moveMouse, moveToAngle.State
viewAngles, movement, mouse delta.Reading
Reading always works, focused or not.isKeyDown
0x01, 0x02, …) work too.
isMouseDown
0 (left).
keydown and mousedown on the global target
instead of polling.
Injection
Input is only sent while the game window has focus, the menu is closed and no text input (chat, IME) is active. Every call returnstrue when the input was sent and false when it was refused.
moveMouse
moveToAngle
angle (degrees), using your sensitivity,
m_yaw and m_pitch.
State
input.state is the game’s input as of the current tick. Every field is null while it can’t be
read, e.g. while the game is loading.