Package ch.epfl.cs107.play.window
Interface Mouse
- All Superinterfaces:
Positionable
Represents the mouse pointer.
-
Method Summary
Methods inherited from interface ch.epfl.cs107.play.math.Positionable
getPosition, getVelocity
-
Method Details
-
getButton
Getter for the button corresponding to the given index- Parameters:
index- (int): given index- Returns:
- (Button): button corresponding of the state of the given index button
-
getLeftButton
- Returns:
- (Button): the left button (by default index = 0)
-
getMiddleButton
- Returns:
- (Button): the Middle button (by default index = 1)
-
getRightButton
- Returns:
- (Button): the right button (by default index = 2)
-
getTransform
- Specified by:
getTransformin interfacePositionable- Returns:
- (Transform): affine transform, not null
-