public class MouseJointAdapter.Manager
extends com.badlogic.gdx.InputAdapter
MouseJointAdapters by creating new ones if necessary. Override newMouseJointAdapter(byte) to define how now ones will be created (by default a copy of the enclosing instance).| Modifier and Type | Field and Description |
|---|---|
private com.badlogic.gdx.utils.Array<MouseJointAdapter> |
adapters
|
private byte |
max
the max size of
adapters |
private boolean |
tmp
a temporary variable
|
| Constructor and Description |
|---|
Manager() |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.utils.Array<MouseJointAdapter> |
getAdapters() |
byte |
getMax() |
boolean |
mouseMoved(int screenX,
int screenY)
calls
mouseMoved on all adapters |
MouseJointAdapter |
newMouseJointAdapter(byte pointer)
override this to define how new
MouseJointAdapters should be created |
void |
setAdapters(com.badlogic.gdx.utils.Array<MouseJointAdapter> adapters) |
void |
setMax(byte max) |
boolean |
touchDown(int screenX,
int screenY,
int pointer,
int button)
|
boolean |
touchDragged(int screenX,
int screenY,
int pointer)
calls
touchDragged on all adapters |
boolean |
touchUp(int screenX,
int screenY,
int pointer,
int button)
|
private com.badlogic.gdx.utils.Array<MouseJointAdapter> adapters
private byte max
adaptersprivate boolean tmp
public boolean touchDown(int screenX,
int screenY,
int pointer,
int button)
touchDown in interface com.badlogic.gdx.InputProcessortouchDown in class com.badlogic.gdx.InputAdapterpublic boolean touchDragged(int screenX,
int screenY,
int pointer)
touchDragged on all adapterstouchDragged in interface com.badlogic.gdx.InputProcessortouchDragged in class com.badlogic.gdx.InputAdapterpublic boolean mouseMoved(int screenX,
int screenY)
mouseMoved on all adaptersmouseMoved in interface com.badlogic.gdx.InputProcessormouseMoved in class com.badlogic.gdx.InputAdapterpublic boolean touchUp(int screenX,
int screenY,
int pointer,
int button)
touchUp in interface com.badlogic.gdx.InputProcessortouchUp in class com.badlogic.gdx.InputAdapterpublic MouseJointAdapter newMouseJointAdapter(byte pointer)
MouseJointAdapters should be createdpointer - the pointer to set to the returned MouseJointAdapterMouseJointAdapter just like this Manager's enclosing instancepublic byte getMax()
maxpublic void setMax(byte max)
max - the max to setpublic com.badlogic.gdx.utils.Array<MouseJointAdapter> getAdapters()
adapterspublic void setAdapters(com.badlogic.gdx.utils.Array<MouseJointAdapter> adapters)