public interface Mouse
extends com.b3dgs.lionengine.core.InputDevicePointer, com.b3dgs.lionengine.Updatable
Modifier and Type | Field and Description |
---|---|
static int |
LEFT
Left click.
|
static int |
MIDDLE
Middle click.
|
static int |
RIGHT
Right click.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionPressed(int click,
EventAction action)
Add an action that will be triggered on pressed state.
|
void |
addActionReleased(int click,
EventAction action)
Add an action that will be triggered on released state.
|
int |
getOnScreenX()
Get location on screen x.
|
int |
getOnScreenY()
Get location on screen y.
|
static final int LEFT
static final int MIDDLE
static final int RIGHT
void addActionPressed(int click, EventAction action)
Alternative usage with classic programming style can be achieved with InputDevicePointer.hasClicked(int)
or
InputDevicePointer.hasClickedOnce(int)
.
click
- The action key.action
- The action reference.void addActionReleased(int click, EventAction action)
Alternative usage with classic programming style can be achieved with InputDevicePointer.hasClicked(int)
or
InputDevicePointer.hasClickedOnce(int)
.
click
- The action key.action
- The action reference.int getOnScreenX()
int getOnScreenY()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.