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, waitaddListener, removeListeneronAccelerometerChanged, onAxisChanged, onButtonDown, onButtonUp, onConnect, onDisconnectpublic SwitchDualJoyConGamePad(GamePad gamePad)
public abstract boolean isButtonDown(SwitchDualJoyConButton button)
public abstract boolean isButtonUp(SwitchDualJoyConButton button)
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.Disposablepublic 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)
public boolean isConnected()
public java.lang.String getInstanceId()
public java.lang.String getModelInfo()
public boolean isPlayerIndicesSupported()
public int getPlayerIndex()
public void setPlayerIndex(int playerIndex)
public boolean isVibrateSupported()
public boolean isVibrating()
public float getVibrationStrength()
public void startVibration(float strength)
public void stopVibration()