public final class MouseAndroid extends Object implements Mouse
Constructor and Description |
---|
MouseAndroid()
Internal constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getClick() |
int |
getMoveX() |
int |
getMoveY() |
int |
getOnScreenX()
Get location on screen x.
|
int |
getOnScreenY()
Get location on screen y.
|
int |
getOnWindowX()
Get location on window x.
|
int |
getOnWindowY()
Get location on window y.
|
int |
getX() |
int |
getY() |
boolean |
hasClicked(int click) |
boolean |
hasClickedOnce(int click) |
boolean |
hasMoved() |
void |
setConfig(int width,
int height,
Config config)
Set the config.
|
void |
update(double extrp) |
public void setConfig(int width, int height, Config config)
width
- The screen width.height
- The screen height.config
- The config reference.public int getOnScreenX()
Mouse
getOnScreenX
in interface Mouse
public int getOnScreenY()
Mouse
getOnScreenY
in interface Mouse
public int getOnWindowX()
Mouse
getOnWindowX
in interface Mouse
public int getOnWindowY()
Mouse
getOnWindowY
in interface Mouse
public int getX()
getX
in interface InputDevicePointer
public int getY()
getY
in interface InputDevicePointer
public int getMoveX()
getMoveX
in interface InputDevicePointer
public int getMoveY()
getMoveY
in interface InputDevicePointer
public int getClick()
getClick
in interface InputDevicePointer
public boolean hasClicked(int click)
hasClicked
in interface InputDevicePointer
public boolean hasClickedOnce(int click)
hasClickedOnce
in interface InputDevicePointer
public boolean hasMoved()
hasMoved
in interface InputDevicePointer
Copyright © 2017 Byron 3D Games Studio. All rights reserved.