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 GamepadState
gamepadState
-
Constructor Summary
Constructors Constructor Description Controller(int int1)
-
Method Summary
Modifier and Type Method Description int
getAxisCount()
java.lang.String
getAxisName(int int1)
float
getAxisValue(int int1)
int
getButtonCount()
java.lang.String
getButtonName(int int1)
float
getDeadZone(int int1)
java.lang.String
getGamepadName()
java.lang.String
getGUID()
int
getHatCount()
int
getHatState()
int
getID()
java.nio.ByteBuffer
getJoystickHats(int int1, java.nio.ByteBuffer byteBuffer)
java.lang.String
getJoystickName()
float
getPovX()
float
getPovY()
float
getXAxisValue()
float
getYAxisValue()
boolean
isButtonPressed(int int1)
boolean
isButtonRelease(int int1)
boolean
isGamepad()
void
poll(GamepadState gamepadState)
void
setDeadZone(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
-