Top Description Fields Constructors Methods
com.studiohartman.jamepad

public final Enum ControllerAxis

extends Enum<ControllerAxis>
Class Inheritance

This is an enumerated type for controller axes. Things are a bit gross here because it needs to correspond with the enum SDL_GameControllerAxis in SDL_gamecontroller.h. We skip the invalid axis one and the max one (Who would ever want to check those anyway?). This means that we start with an index 0 instead of -1, so that's nice at least. Make sure that the indices of the included axis matches with the values in the enum in native code. (i.e. that A is 0 in both, B is 1 in both, etc.).
Author
William Hartman

Field Summary

Modifier and TypeField and Description
public static final ControllerAxis
public static final ControllerAxis
public static final ControllerAxis
public static final ControllerAxis
public static final ControllerAxis
public static final ControllerAxis

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ControllerAxis
public static ControllerAxis[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

LEFTXback to summary
public static final ControllerAxis LEFTX
LEFTYback to summary
public static final ControllerAxis LEFTY
RIGHTXback to summary
public static final ControllerAxis RIGHTX
RIGHTYback to summary
public static final ControllerAxis RIGHTY
TRIGGERLEFTback to summary
public static final ControllerAxis TRIGGERLEFT
TRIGGERRIGHTback to summary
public static final ControllerAxis TRIGGERRIGHT

Constructor Detail

ControllerAxisback to summary
private ControllerAxis()

Method Detail

valueOfback to summary
public static ControllerAxis valueOf(String name)
valuesback to summary
public static ControllerAxis[] values()