Extensions Button Up

boolean mmf.mouse.buttonUp ( number button )

Test if one of the mouse buttons is currently released.  A list of valid mouse constants can be found here.

Parameters

button One of the mouse button constants

Return Values

boolean true if the button is not held down, false otherwise

Example

local leftDown = mmf.mouse.buttonUp(mmf.MOUSE_LEFT)
 
if (leftDown) then
  assert(mmf.mouse.buttonDown(mmf.MOUSE_LEFT) == false)
end


See also:
     Button Down, Key Down, Key Up

Copyright 2010 Justin Aquadro