IsMouseBeingReleased
This function was added in DSL 5
Description
Check if a mouse button was just released this frame.
Mouse buttons are in the range of [0,3] for a total of 4 buttons.
0: Left mouse button1: Right mouse button2: Middle mouse button (scroll wheel)3: Extra mouse button (if available)
function IsMouseBeingReleased(button) --[[ ... ]] end
Parameters
button:0|1|2|3- The mouse button to check.
Return Values
released:boolean-trueif the specified mouse button was just released, otherwisefalse.
Example
function main()
while true do
if IsMouseBeingReleased(0) then
print('Left mouse button was just released.', 0.5, 1)
end
Wait(0)
end
end