Top Description Inners Fields Constructors Methods
org.lwjgl.ovr

public Class OVRInputState

extends Struct<OVRInputState>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct ovrInputState
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Describes the complete controller input state, including Oculus Touch, and XBox gamepad. If multiple inputs are connected and used at the same time, their inputs are combined.

Layout


struct ovrInputState {
    double TimeInSeconds;
    unsigned int Buttons;
    unsigned int Touches;
    float IndexTrigger[ovrHand_Count];
    float HandTrigger[ovrHand_Count];
    ovrVector2f Thumbstick[ovrHand_Count];
    ovrControllerType ControllerType;
    float IndexTriggerNoDeadzone[ovrHand_Count];
    float HandTriggerNoDeadzone[ovrHand_Count];
    ovrVector2f ThumbstickNoDeadzone[ovrHand_Count];
    float IndexTriggerRaw[ovrHand_Count];
    float HandTriggerRaw[ovrHand_Count];
    ovrVector2f ThumbstickRaw[ovrHand_Count];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
OVRInputState.Buffer

An array of OVRInputState structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BUTTONS

The struct member offsets.

public static final int
CONTROLLERTYPE

The struct member offsets.

public static final int
HANDTRIGGER

The struct member offsets.

public static final int
HANDTRIGGERNODEADZONE

The struct member offsets.

public static final int
HANDTRIGGERRAW

The struct member offsets.

public static final int
INDEXTRIGGER

The struct member offsets.

public static final int
INDEXTRIGGERNODEADZONE

The struct member offsets.

public static final int
INDEXTRIGGERRAW

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
THUMBSTICK

The struct member offsets.

public static final int
THUMBSTICKNODEADZONE

The struct member offsets.

public static final int
THUMBSTICKRAW

The struct member offsets.

public static final int
TIMEINSECONDS

The struct member offsets.

public static final int
TOUCHES

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
OVRInputState(long address, ByteBuffer container)

public
OVRInputState(ByteBuffer container)

Creates a OVRInputState instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
Buttons()

values for buttons described by ovrButton

public static OVRInputState
calloc()

Returns a new OVRInputState instance allocated with memCalloc.

public static OVRInputState.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new OVRInputState.Buffer instance allocated with memCalloc.

public static OVRInputState
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRInputState instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRInputState.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRInputState.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static OVRInputState
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRInputState
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRInputState.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRInputState.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
ControllerType()

The type of the controller this state is for.

protected OVRInputState
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static OVRInputState
create()

Returns a new OVRInputState instance allocated with BufferUtils.

public static OVRInputState
create(long address)

Returns a new OVRInputState instance for the specified memory address.

public static OVRInputState.Buffer
create(int
the buffer capacity
capacity
)

Returns a new OVRInputState.Buffer instance allocated with BufferUtils.

public static OVRInputState.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a OVRInputState.Buffer instance at the specified memory.

public static OVRInputState
createSafe(long address)

Like create, but returns null if address is NULL.

public static OVRInputState.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public FloatBuffer
HandTrigger()

left and right hand trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public float
HandTrigger(int index)

left and right hand trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public FloatBuffer
HandTriggerNoDeadzone()

Left and right hand trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public float
HandTriggerNoDeadzone(int index)

Left and right hand trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public FloatBuffer
HandTriggerRaw()

Left and right hand trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public float
HandTriggerRaw(int index)

Left and right hand trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public FloatBuffer
IndexTrigger()

left and right finger trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public float
IndexTrigger(int index)

left and right finger trigger values (Hand_Left and Hand_Right), in the range 0.0 to 1.0f.

public FloatBuffer
IndexTriggerNoDeadzone()

Left and right finger trigger values (Hand_Left and Hand_Right), in range 0.0 to 1.0f.

public float
IndexTriggerNoDeadzone(int index)

Left and right finger trigger values (Hand_Left and Hand_Right), in range 0.0 to 1.0f.

public FloatBuffer
IndexTriggerRaw()

Left and right finger trigger values (Hand_Left and Hand_Right), in range 0.0 to 1.0f.

public float
IndexTriggerRaw(int index)

Left and right finger trigger values (Hand_Left and Hand_Right), in range 0.0 to 1.0f.

public static OVRInputState
malloc()

Returns a new OVRInputState instance allocated with memAlloc.

public static OVRInputState.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new OVRInputState.Buffer instance allocated with memAlloc.

public static OVRInputState
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRInputState instance allocated on the specified MemoryStack.

public static OVRInputState.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new OVRInputState.Buffer instance allocated on the specified MemoryStack.

public static OVRInputState
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static OVRInputState
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRInputState.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static OVRInputState.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static int
nButtons(long struct)

Unsafe version of Buttons.

public static int
nControllerType(long struct)

Unsafe version of ControllerType.

public static FloatBuffer
nHandTrigger(long struct)

Unsafe version of HandTrigger.

public static float
nHandTrigger(long struct, int index)

Unsafe version of HandTrigger.

public static FloatBuffer
nHandTriggerNoDeadzone(long struct)

Unsafe version of HandTriggerNoDeadzone.

public static float
nHandTriggerNoDeadzone(long struct, int index)

Unsafe version of HandTriggerNoDeadzone.

public static FloatBuffer
nHandTriggerRaw(long struct)

Unsafe version of HandTriggerRaw.

public static float
nHandTriggerRaw(long struct, int index)

Unsafe version of HandTriggerRaw.

public static FloatBuffer
nIndexTrigger(long struct)

Unsafe version of IndexTrigger.

public static float
nIndexTrigger(long struct, int index)

Unsafe version of IndexTrigger.

public static FloatBuffer
nIndexTriggerNoDeadzone(long struct)

Unsafe version of IndexTriggerNoDeadzone.

public static float
nIndexTriggerNoDeadzone(long struct, int index)

Unsafe version of IndexTriggerNoDeadzone.

public static FloatBuffer
nIndexTriggerRaw(long struct)

Unsafe version of IndexTriggerRaw.

public static float
nIndexTriggerRaw(long struct, int index)

Unsafe version of IndexTriggerRaw.

public static OVRVector2f.Buffer
nThumbstick(long struct)

Unsafe version of Thumbstick.

public static OVRVector2f
nThumbstick(long struct, int index)

Unsafe version of Thumbstick.

public static OVRVector2f.Buffer
nThumbstickNoDeadzone(long struct)

Unsafe version of ThumbstickNoDeadzone.

public static OVRVector2f
nThumbstickNoDeadzone(long struct, int index)

Unsafe version of ThumbstickNoDeadzone.

public static OVRVector2f.Buffer
nThumbstickRaw(long struct)

Unsafe version of ThumbstickRaw.

public static OVRVector2f
nThumbstickRaw(long struct, int index)

Unsafe version of ThumbstickRaw.

public static double
nTimeInSeconds(long struct)

Unsafe version of TimeInSeconds.

public static int
nTouches(long struct)

Unsafe version of Touches.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public OVRVector2f.Buffer
Thumbstick()

horizontal and vertical thumbstick axis values (Hand_Left and Hand_Right), in the range -1.0f to 1.0f.

public OVRVector2f
Thumbstick(int index)

horizontal and vertical thumbstick axis values (Hand_Left and Hand_Right), in the range -1.0f to 1.0f.

public OVRVector2f.Buffer
ThumbstickNoDeadzone()

Horizontal and vertical thumbstick axis values (Hand_Left and Hand_Right), in the range -1.0f to 1.0f.

public OVRVector2f
ThumbstickNoDeadzone(int index)

Horizontal and vertical thumbstick axis values (Hand_Left and Hand_Right), in the range -1.0f to 1.0f.

public OVRVector2f.Buffer
ThumbstickRaw()

Horizontal and vertical thumbstick axis values (Hand_Left and Hand_Right), in range -1.0f to 1.0f.

public OVRVector2f
ThumbstickRaw(int index)

Horizontal and vertical thumbstick axis values (Hand_Left and Hand_Right), in range -1.0f to 1.0f.

public double
TimeInSeconds()

system type when the controller state was last updated

public int
Touches()

touch values for buttons and sensors as described by ovrTouch.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate