Skip to content

isKeyDown

Checks if a keyboard key is currently being held down.

Syntax

lua
Ham.isKeyDown(key)

Parameters

NameTypeDescription
keyintegerImGui key code

Returns

  • boolean - true if the key is down

Example

lua
if Ham.isKeyDown(87) then -- W key
    print("W is being held")
end

See Also

Released under the ISC License.