Package org.lwjglx.input
Class Controller
java.lang.Object
org.lwjglx.input.Controller
public final class Controller
extends java.lang.Object
- 
Field SummaryFields Modifier and Type Field Description GamepadStategamepadState
- 
Constructor SummaryConstructors Constructor Description Controller(int int1)
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
gamepadState
 
- 
- 
Constructor Details- 
Controllerpublic Controller(int int1)
 
- 
- 
Method Details- 
getIDpublic int getID()
- 
getGUIDpublic java.lang.String getGUID()
- 
isGamepadpublic boolean isGamepad()
- 
getJoystickNamepublic java.lang.String getJoystickName()
- 
getGamepadNamepublic java.lang.String getGamepadName()
- 
getAxisCountpublic int getAxisCount()
- 
getAxisValuepublic float getAxisValue(int int1)
- 
getButtonCountpublic int getButtonCount()
- 
getHatCountpublic int getHatCount()
- 
getHatStatepublic int getHatState()
- 
getJoystickHatspublic java.nio.ByteBuffer getJoystickHats(int int1, java.nio.ByteBuffer byteBuffer)
- 
getAxisNamepublic java.lang.String getAxisName(int int1)
- 
getXAxisValuepublic float getXAxisValue()
- 
getYAxisValuepublic float getYAxisValue()
- 
getDeadZonepublic float getDeadZone(int int1)
- 
setDeadZonepublic void setDeadZone(int int1, float float1)
- 
getPovXpublic float getPovX()
- 
getPovYpublic float getPovY()
- 
isButtonPressedpublic boolean isButtonPressed(int int1)
- 
isButtonReleasepublic boolean isButtonRelease(int int1)
- 
getButtonNamepublic java.lang.String getButtonName(int int1)
- 
poll
 
-