GetAsyncKeyState
Gets the raw key state using the Windows GetAsyncKeyState function.
Syntax
Susano.GetAsyncKeyState(vk) -> down, pressedParameters
Return(s)
Example(s)
-- A key (0x41)
local down, pressed = Susano.GetAsyncKeyState(0x41)
if pressed then print("A pressed") end
if down then print("A held") endLast updated