isRightDown

.isRightDown()

Returns true if the right mouse button is current pressed down, otherwise false.

.isRightDown() { |x, y| ... }

An optional block can be attached which will receive the mouse's current X and Y location, when the right mouse button is down.

getControls().isRightDown() do |x, y|
    // run when the right button is down
end

See also

isLeftDown - isMiddleDown - isRightClick - isRightPressed