input.mouseDown(int button)
This returns 1 when the button passed in the argument is held down other wise ti returns 0
Example:
- Code: Select all
function onUpdate( timeDelta )
if( input.mouseDown( 1 ) == 1) then sky.lprint("you pressed the Left mouse button"); end
if( input.mouseDown( 2 ) == 1) then sky.lprint("you pressed the Right mouse button"); end
end
This will also be in the next release for you