Skip to content

isMouseReleased

Checks if a mouse button was just released this frame.

Syntax

lua
Ham.isMouseReleased(button)

Parameters

NameTypeDescription
buttonintegerMouse button (0 = Left, 1 = Right, 2 = Middle)

Returns

  • boolean - true if the button was just released

Example

lua
if Ham.isMouseReleased(1) then
    print("Right mouse button released")
end

See Also

Released under the ISC License.