public abstract class SwitchDualJoyConGamePad extends java.lang.Object implements GamePadMapping<SwitchDualJoyConGamePadListener>, org.mini2Dx.gdx.utils.Disposable
Constructor and Description |
---|
SwitchDualJoyConGamePad(GamePad gamePad) |
SwitchDualJoyConGamePad(GamePad gamePad,
DeadZone leftStickDeadZone,
DeadZone rightStickDeadZone) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
onAccelerometerChanged, onAxisChanged, onButtonDown, onButtonUp, onConnect, onDisconnect, onPovChanged
public SwitchDualJoyConGamePad(GamePad gamePad)
protected boolean notifyConnected()
protected boolean notifyDisconnected()
protected boolean notifyButtonDown(SwitchDualJoyConButton button)
protected boolean notifyButtonUp(SwitchDualJoyConButton button)
protected boolean notifyLeftStickXMoved(float value)
protected boolean notifyLeftStickYMoved(float value)
protected boolean notifyRightStickXMoved(float value)
protected boolean notifyRightStickYMoved(float value)
protected boolean notifyZLMoved(float value)
protected boolean notifyZRMoved(float value)
public void addListener(SwitchDualJoyConGamePadListener listener)
addListener
in interface GamePadMapping<SwitchDualJoyConGamePadListener>
public void removeListener(SwitchDualJoyConGamePadListener listener)
removeListener
in interface GamePadMapping<SwitchDualJoyConGamePadListener>
public void clearListeners()
clearListeners
in interface GamePadMapping<SwitchDualJoyConGamePadListener>
public int getTotalListeners()
getTotalListeners
in interface GamePadMapping<SwitchDualJoyConGamePadListener>
public void dispose()
dispose
in interface org.mini2Dx.gdx.utils.Disposable
public DeadZone getLeftStickDeadZone()
public void setLeftStickDeadZone(DeadZone leftStickDeadZone)
public DeadZone getRightStickDeadZone()
public void setRightStickDeadZone(DeadZone rightStickDeadZone)
public DeadZone getZLDeadZone()
public void setZLDeadZone(DeadZone zlDeadZone)
public DeadZone getZRDeadZone()
public void setZRDeadZone(DeadZone zrDeadZone)