Package apple.gamecontroller.struct
Class GCExtendedGamepadSnapshotData
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.gamecontroller.struct.GCExtendedGamepadSnapshotData
-
public final class GCExtendedGamepadSnapshotData extends org.moe.natj.c.StructObject
-
-
Constructor Summary
Constructors Modifier Constructor Description GCExtendedGamepadSnapshotData()protectedGCExtendedGamepadSnapshotData(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatbuttonA()Buttons in the range [0.0, 1.0]floatbuttonB()floatbuttonX()floatbuttonY()floatdpadX()Extended gamepad data Axes in the range [-1.0, 1.0]floatdpadY()floatleftShoulder()booleanleftThumbstickButton()Left and right thumbstick clickable values (0, 1)floatleftThumbstickX()Axes in the range [-1.0, 1.0]floatleftThumbstickY()floatleftTrigger()Buttons in the range [0.0, 1.0]floatrightShoulder()booleanrightThumbstickButton()floatrightThumbstickX()floatrightThumbstickY()floatrightTrigger()voidsetButtonA(float value)Buttons in the range [0.0, 1.0]voidsetButtonB(float value)voidsetButtonX(float value)voidsetButtonY(float value)voidsetDpadX(float value)Extended gamepad data Axes in the range [-1.0, 1.0]voidsetDpadY(float value)voidsetLeftShoulder(float value)voidsetLeftThumbstickButton(boolean value)Left and right thumbstick clickable values (0, 1)voidsetLeftThumbstickX(float value)Axes in the range [-1.0, 1.0]voidsetLeftThumbstickY(float value)voidsetLeftTrigger(float value)Buttons in the range [0.0, 1.0]voidsetRightShoulder(float value)voidsetRightThumbstickButton(boolean value)voidsetRightThumbstickX(float value)voidsetRightThumbstickY(float value)voidsetRightTrigger(float value)voidsetSize(char value)voidsetSupportsClickableThumbsticks(boolean value)Boolean indicating whether the controller supports clickable thumbsticks (1) or not (0)voidsetVersion(char value)charsize()booleansupportsClickableThumbsticks()Boolean indicating whether the controller supports clickable thumbsticks (1) or not (0)charversion()
-
-
-
Method Detail
-
version
public char version()
-
setVersion
public void setVersion(char value)
-
size
public char size()
-
setSize
public void setSize(char value)
-
dpadX
public float dpadX()
Extended gamepad data Axes in the range [-1.0, 1.0]
-
setDpadX
public void setDpadX(float value)
Extended gamepad data Axes in the range [-1.0, 1.0]
-
dpadY
public float dpadY()
-
setDpadY
public void setDpadY(float value)
-
buttonA
public float buttonA()
Buttons in the range [0.0, 1.0]
-
setButtonA
public void setButtonA(float value)
Buttons in the range [0.0, 1.0]
-
buttonB
public float buttonB()
-
setButtonB
public void setButtonB(float value)
-
buttonX
public float buttonX()
-
setButtonX
public void setButtonX(float value)
-
buttonY
public float buttonY()
-
setButtonY
public void setButtonY(float value)
-
leftShoulder
public float leftShoulder()
-
setLeftShoulder
public void setLeftShoulder(float value)
-
rightShoulder
public float rightShoulder()
-
setRightShoulder
public void setRightShoulder(float value)
-
leftThumbstickX
public float leftThumbstickX()
Axes in the range [-1.0, 1.0]
-
setLeftThumbstickX
public void setLeftThumbstickX(float value)
Axes in the range [-1.0, 1.0]
-
leftThumbstickY
public float leftThumbstickY()
-
setLeftThumbstickY
public void setLeftThumbstickY(float value)
-
rightThumbstickX
public float rightThumbstickX()
-
setRightThumbstickX
public void setRightThumbstickX(float value)
-
rightThumbstickY
public float rightThumbstickY()
-
setRightThumbstickY
public void setRightThumbstickY(float value)
-
leftTrigger
public float leftTrigger()
Buttons in the range [0.0, 1.0]
-
setLeftTrigger
public void setLeftTrigger(float value)
Buttons in the range [0.0, 1.0]
-
rightTrigger
public float rightTrigger()
-
setRightTrigger
public void setRightTrigger(float value)
-
supportsClickableThumbsticks
public boolean supportsClickableThumbsticks()
Boolean indicating whether the controller supports clickable thumbsticks (1) or not (0)
-
setSupportsClickableThumbsticks
public void setSupportsClickableThumbsticks(boolean value)
Boolean indicating whether the controller supports clickable thumbsticks (1) or not (0)
-
leftThumbstickButton
public boolean leftThumbstickButton()
Left and right thumbstick clickable values (0, 1)
-
setLeftThumbstickButton
public void setLeftThumbstickButton(boolean value)
Left and right thumbstick clickable values (0, 1)
-
rightThumbstickButton
public boolean rightThumbstickButton()
-
setRightThumbstickButton
public void setRightThumbstickButton(boolean value)
-
-