public class LibgdxCustomCursor extends CustomCursor
downPixmap, upPixmap, xHotspot, yHotspot
Constructor and Description |
---|
LibgdxCustomCursor(Pixmap upPixmap,
Pixmap downPixmap,
int xHotspot,
int yHotspot)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
keyDown(int keycode) |
boolean |
keyTyped(char character) |
boolean |
keyUp(int keycode) |
boolean |
mouseMoved(int screenX,
int screenY) |
boolean |
scrolled(int amount) |
boolean |
touchDown(int screenX,
int screenY,
int pointer,
int button) |
boolean |
touchDragged(int screenX,
int screenY,
int pointer) |
boolean |
touchUp(int screenX,
int screenY,
int pointer,
int button) |
getDownPixmap, getUpPixmap, getxHotspot, getyHotspot
public LibgdxCustomCursor(Pixmap upPixmap, Pixmap downPixmap, int xHotspot, int yHotspot)
upPixmap
- The image to use in the mouse button up statedownPixmap
- The image to use in the mouse button down statexHotspot
- The x location of the hotspot pixel within the cursor image (origin top-left corner)yHotspot
- The y location of the hotspot pixel within the cursor image (origin top-left corner)public boolean keyDown(int keycode)
public boolean keyUp(int keycode)
public boolean keyTyped(char character)
public boolean touchDown(int screenX, int screenY, int pointer, int button)
public boolean touchUp(int screenX, int screenY, int pointer, int button)
public boolean touchDragged(int screenX, int screenY, int pointer)
public boolean mouseMoved(int screenX, int screenY)
public boolean scrolled(int amount)