Package org.lwjglx.input
Class Controller
java.lang.Object
org.lwjglx.input.Controller
public final class Controller
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description GamepadStategamepadState -
Constructor Summary
Constructors Constructor Description Controller(int int1) -
Method Summary
Modifier and Type Method Description intgetAxisCount()java.lang.StringgetAxisName(int int1)floatgetAxisValue(int int1)intgetButtonCount()java.lang.StringgetButtonName(int int1)floatgetDeadZone(int int1)java.lang.StringgetGamepadName()java.lang.StringgetGUID()intgetHatCount()intgetHatState()intgetID()java.nio.ByteBuffergetJoystickHats(int int1, java.nio.ByteBuffer byteBuffer)java.lang.StringgetJoystickName()floatgetPovX()floatgetPovY()floatgetXAxisValue()floatgetYAxisValue()booleanisButtonPressed(int int1)booleanisButtonRelease(int int1)booleanisGamepad()voidpoll(GamepadState gamepadState)voidsetDeadZone(int int1, float float1)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
gamepadState
-
-
Constructor Details
-
Controller
public Controller(int int1)
-
-
Method Details
-
getID
public int getID() -
getGUID
public java.lang.String getGUID() -
isGamepad
public boolean isGamepad() -
getJoystickName
public java.lang.String getJoystickName() -
getGamepadName
public java.lang.String getGamepadName() -
getAxisCount
public int getAxisCount() -
getAxisValue
public float getAxisValue(int int1) -
getButtonCount
public int getButtonCount() -
getHatCount
public int getHatCount() -
getHatState
public int getHatState() -
getJoystickHats
public java.nio.ByteBuffer getJoystickHats(int int1, java.nio.ByteBuffer byteBuffer) -
getAxisName
public java.lang.String getAxisName(int int1) -
getXAxisValue
public float getXAxisValue() -
getYAxisValue
public float getYAxisValue() -
getDeadZone
public float getDeadZone(int int1) -
setDeadZone
public void setDeadZone(int int1, float float1) -
getPovX
public float getPovX() -
getPovY
public float getPovY() -
isButtonPressed
public boolean isButtonPressed(int int1) -
isButtonRelease
public boolean isButtonRelease(int int1) -
getButtonName
public java.lang.String getButtonName(int int1) -
poll
-