Input API
Check keyboard and mouse input state.
Functions
is_key_down()
local pressed = kinetic.input.is_key_down(vk_code)0x45 -- E key
0x51 -- Q key
0x52 -- R key
0x46 -- F key
0x20 -- Space
0x10 -- Shift
0x11 -- Ctrl
0x12 -- Altif kinetic.input.is_key_down(0x45) then
print("E key is pressed")
endis_mouse_down()
get_mouse_pos()
Complete Examples
Key Toggle
Mouse Tracker
Virtual Key Codes Reference
Key
Code
Key
Code
Next Steps
Last updated