public abstract class XboxGamePad extends java.lang.Object implements GamePadMapping<XboxGamePadListener>, org.mini2Dx.gdx.utils.Disposable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ID |
| Constructor and Description |
|---|
XboxGamePad(GamePad gamePad) |
XboxGamePad(GamePad gamePad,
DeadZone leftStickDeadZone,
DeadZone rightStickDeadZone) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAccelerometerChanged, onAxisChanged, onButtonDown, onButtonUp, onConnect, onDisconnect, onPovChangedpublic XboxGamePad(GamePad gamePad)
protected boolean notifyConnected()
protected boolean notifyDisconnected()
protected boolean notifyButtonDown(XboxButton button)
protected boolean notifyButtonUp(XboxButton button)
protected boolean notifyLeftTriggerMoved(float value)
protected boolean notifyRightTriggerMoved(float value)
protected boolean notifyLeftStickXMoved(float value)
protected boolean notifyLeftStickYMoved(float value)
protected boolean notifyRightStickXMoved(float value)
protected boolean notifyRightStickYMoved(float value)
public void addListener(XboxGamePadListener listener)
addListener in interface GamePadMapping<XboxGamePadListener>public void addListener(int index,
XboxGamePadListener listener)
addListener in interface GamePadMapping<XboxGamePadListener>public void removeListener(int index)
removeListener in interface GamePadMapping<XboxGamePadListener>public void removeListener(XboxGamePadListener listener)
removeListener in interface GamePadMapping<XboxGamePadListener>public void clearListeners()
clearListeners in interface GamePadMapping<XboxGamePadListener>public int getTotalListeners()
getTotalListeners in interface GamePadMapping<XboxGamePadListener>public void dispose()
dispose in interface org.mini2Dx.gdx.utils.Disposablepublic DeadZone getLeftStickDeadZone()
public void setLeftStickDeadZone(DeadZone leftStickDeadZone)
public DeadZone getRightStickDeadZone()
public void setRightStickDeadZone(DeadZone rightStickDeadZone)
public DeadZone getLeftTriggerDeadZone()
public void setLeftTriggerDeadZone(DeadZone leftTriggerDeadZone)
public DeadZone getRightTriggerDeadZone()
public void setRightTriggerDeadZone(DeadZone rightTriggerDeadZone)