Package sk.tuke.kpi.gamelib
Interface MouseListener
-
public interface MouseListener
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
mouseDragged(int sceneX, int sceneY)
Notified when mouse cursor is dragged.default void
mouseMoved(int sceneX, int sceneY)
Notified when mouse cursor is moved.default void
mousePressed(int sceneX, int sceneY, Input.Button button)
Notified when mouse button is pressed.default void
mouseReleased(int sceneX, int sceneY, Input.Button button)
Notified when mouse button is released.
-
-
-
Method Detail
-
mouseMoved
default void mouseMoved(int sceneX, int sceneY)
Notified when mouse cursor is moved.- Parameters:
sceneX
- X scene coordinate of the cursor.sceneY
- Y scene coordinate of the cursor.
-
mouseDragged
default void mouseDragged(int sceneX, int sceneY)
Notified when mouse cursor is dragged.- Parameters:
sceneX
- X scene coordinate of the cursor.sceneY
- Y scene coordinate of the cursor.
-
mousePressed
default void mousePressed(int sceneX, int sceneY, @NotNull Input.Button button)
Notified when mouse button is pressed.- Parameters:
sceneX
- X scene coordinate of the cursor.sceneY
- Y scene coordinate of the cursor.button
- the pressed mouse button.
-
mouseReleased
default void mouseReleased(int sceneX, int sceneY, @NotNull Input.Button button)
Notified when mouse button is released.- Parameters:
sceneX
- X scene coordinate of the cursor.sceneY
- Y scene coordinate of the cursor.button
- the released mouse button.
-
-