All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.ovr.OVRInputState Maven / Gradle / Ivy

The newest version!
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.ovr;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.*;
import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.MemoryStack.*;

import static org.lwjgl.ovr.OVR.ovrHand_Count;

/**
 * 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 {@link #TimeInSeconds};
 *     unsigned int {@link #Buttons};
 *     unsigned int {@link #Touches};
 *     float {@link #IndexTrigger}[ovrHand_Count];
 *     float {@link #HandTrigger}[ovrHand_Count];
 *     {@link OVRVector2f ovrVector2f} {@link #Thumbstick}[ovrHand_Count];
 *     ovrControllerType {@link #ControllerType};
 *     float {@link #IndexTriggerNoDeadzone}[ovrHand_Count];
 *     float {@link #HandTriggerNoDeadzone}[ovrHand_Count];
 *     {@link OVRVector2f ovrVector2f} {@link #ThumbstickNoDeadzone}[ovrHand_Count];
 *     float {@link #IndexTriggerRaw}[ovrHand_Count];
 *     float {@link #HandTriggerRaw}[ovrHand_Count];
 *     {@link OVRVector2f ovrVector2f} {@link #ThumbstickRaw}[ovrHand_Count];
 * }
*/ @NativeType("struct ovrInputState") public class OVRInputState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; /** The struct alignment in bytes. */ public static final int ALIGNOF; /** The struct member offsets. */ public static final int TIMEINSECONDS, BUTTONS, TOUCHES, INDEXTRIGGER, HANDTRIGGER, THUMBSTICK, CONTROLLERTYPE, INDEXTRIGGERNODEADZONE, HANDTRIGGERNODEADZONE, THUMBSTICKNODEADZONE, INDEXTRIGGERRAW, HANDTRIGGERRAW, THUMBSTICKRAW; static { Layout layout = __struct( __member(8), __member(4), __member(4), __array(4, ovrHand_Count), __array(4, ovrHand_Count), __array(OVRVector2f.SIZEOF, OVRVector2f.ALIGNOF, ovrHand_Count), __member(4), __array(4, ovrHand_Count), __array(4, ovrHand_Count), __array(OVRVector2f.SIZEOF, OVRVector2f.ALIGNOF, ovrHand_Count), __array(4, ovrHand_Count), __array(4, ovrHand_Count), __array(OVRVector2f.SIZEOF, OVRVector2f.ALIGNOF, ovrHand_Count) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); TIMEINSECONDS = layout.offsetof(0); BUTTONS = layout.offsetof(1); TOUCHES = layout.offsetof(2); INDEXTRIGGER = layout.offsetof(3); HANDTRIGGER = layout.offsetof(4); THUMBSTICK = layout.offsetof(5); CONTROLLERTYPE = layout.offsetof(6); INDEXTRIGGERNODEADZONE = layout.offsetof(7); HANDTRIGGERNODEADZONE = layout.offsetof(8); THUMBSTICKNODEADZONE = layout.offsetof(9); INDEXTRIGGERRAW = layout.offsetof(10); HANDTRIGGERRAW = layout.offsetof(11); THUMBSTICKRAW = layout.offsetof(12); } protected OVRInputState(long address, @Nullable ByteBuffer container) { super(address, container); } @Override protected OVRInputState create(long address, @Nullable ByteBuffer container) { return new OVRInputState(address, container); } /** * Creates a {@code OVRInputState} instance at the current position of the specified {@link ByteBuffer} container. Changes to the buffer's content will be * visible to the struct instance and vice versa. * *

The created instance holds a strong reference to the container object.

*/ public OVRInputState(ByteBuffer container) { super(memAddress(container), __checkContainer(container, SIZEOF)); } @Override public int sizeof() { return SIZEOF; } /** system type when the controller state was last updated */ public double TimeInSeconds() { return nTimeInSeconds(address()); } /** values for buttons described by {@code ovrButton} */ @NativeType("unsigned int") public int Buttons() { return nButtons(address()); } /** touch values for buttons and sensors as described by {@code ovrTouch}. */ @NativeType("unsigned int") public int Touches() { return nTouches(address()); } /** left and right finger trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. */ @NativeType("float[ovrHand_Count]") public FloatBuffer IndexTrigger() { return nIndexTrigger(address()); } /** left and right finger trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. */ public float IndexTrigger(int index) { return nIndexTrigger(address(), index); } /** left and right hand trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. */ @NativeType("float[ovrHand_Count]") public FloatBuffer HandTrigger() { return nHandTrigger(address()); } /** left and right hand trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. */ public float HandTrigger(int index) { return nHandTrigger(address(), index); } /** horizontal and vertical thumbstick axis values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range -1.0f to 1.0f. */ @NativeType("ovrVector2f[ovrHand_Count]") public OVRVector2f.Buffer Thumbstick() { return nThumbstick(address()); } /** horizontal and vertical thumbstick axis values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range -1.0f to 1.0f. */ @NativeType("ovrVector2f") public OVRVector2f Thumbstick(int index) { return nThumbstick(address(), index); } /** The type of the controller this state is for. One of:
{@link OVR#ovrControllerType_None ControllerType_None}{@link OVR#ovrControllerType_LTouch ControllerType_LTouch}{@link OVR#ovrControllerType_RTouch ControllerType_RTouch}
{@link OVR#ovrControllerType_Touch ControllerType_Touch}{@link OVR#ovrControllerType_Remote ControllerType_Remote}{@link OVR#ovrControllerType_XBox ControllerType_XBox}
{@link OVR#ovrControllerType_Object0 ControllerType_Object0}{@link OVR#ovrControllerType_Object1 ControllerType_Object1}{@link OVR#ovrControllerType_Object2 ControllerType_Object2}
{@link OVR#ovrControllerType_Object3 ControllerType_Object3}{@link OVR#ovrControllerType_Active ControllerType_Active}
*/ @NativeType("ovrControllerType") public int ControllerType() { return nControllerType(address()); } /** Left and right finger trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in range 0.0 to 1.0f. Does not apply a deadzone. Only touch applies a filter. */ @NativeType("float[ovrHand_Count]") public FloatBuffer IndexTriggerNoDeadzone() { return nIndexTriggerNoDeadzone(address()); } /** Left and right finger trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in range 0.0 to 1.0f. Does not apply a deadzone. Only touch applies a filter. */ public float IndexTriggerNoDeadzone(int index) { return nIndexTriggerNoDeadzone(address(), index); } /** Left and right hand trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. Does not apply a deadzone. Only touch applies a filter. */ @NativeType("float[ovrHand_Count]") public FloatBuffer HandTriggerNoDeadzone() { return nHandTriggerNoDeadzone(address()); } /** Left and right hand trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. Does not apply a deadzone. Only touch applies a filter. */ public float HandTriggerNoDeadzone(int index) { return nHandTriggerNoDeadzone(address(), index); } /** Horizontal and vertical thumbstick axis values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range -1.0f to 1.0f. Does not apply a deadzone or filter. */ @NativeType("ovrVector2f[ovrHand_Count]") public OVRVector2f.Buffer ThumbstickNoDeadzone() { return nThumbstickNoDeadzone(address()); } /** Horizontal and vertical thumbstick axis values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range -1.0f to 1.0f. Does not apply a deadzone or filter. */ @NativeType("ovrVector2f") public OVRVector2f ThumbstickNoDeadzone(int index) { return nThumbstickNoDeadzone(address(), index); } /** Left and right finger trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in range 0.0 to 1.0f. No deadzone or filter. */ @NativeType("float[ovrHand_Count]") public FloatBuffer IndexTriggerRaw() { return nIndexTriggerRaw(address()); } /** Left and right finger trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in range 0.0 to 1.0f. No deadzone or filter. */ public float IndexTriggerRaw(int index) { return nIndexTriggerRaw(address(), index); } /** Left and right hand trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. No deadzone or filter. */ @NativeType("float[ovrHand_Count]") public FloatBuffer HandTriggerRaw() { return nHandTriggerRaw(address()); } /** Left and right hand trigger values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in the range 0.0 to 1.0f. No deadzone or filter. */ public float HandTriggerRaw(int index) { return nHandTriggerRaw(address(), index); } /** Horizontal and vertical thumbstick axis values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in range -1.0f to 1.0f. No deadzone or filter. */ @NativeType("ovrVector2f[ovrHand_Count]") public OVRVector2f.Buffer ThumbstickRaw() { return nThumbstickRaw(address()); } /** Horizontal and vertical thumbstick axis values ({@link OVR#ovrHand_Left Hand_Left} and {@link OVR#ovrHand_Right Hand_Right}), in range -1.0f to 1.0f. No deadzone or filter. */ @NativeType("ovrVector2f") public OVRVector2f ThumbstickRaw(int index) { return nThumbstickRaw(address(), index); } // ----------------------------------- /** Returns a new {@code OVRInputState} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static OVRInputState malloc() { return new OVRInputState(nmemAllocChecked(SIZEOF), null); } /** Returns a new {@code OVRInputState} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static OVRInputState calloc() { return new OVRInputState(nmemCallocChecked(1, SIZEOF), null); } /** Returns a new {@code OVRInputState} instance allocated with {@link BufferUtils}. */ public static OVRInputState create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return new OVRInputState(memAddress(container), container); } /** Returns a new {@code OVRInputState} instance for the specified memory address. */ public static OVRInputState create(long address) { return new OVRInputState(address, null); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static OVRInputState createSafe(long address) { return address == NULL ? null : new OVRInputState(address, null); } /** * Returns a new {@link OVRInputState.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static OVRInputState.Buffer malloc(int capacity) { return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link OVRInputState.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static OVRInputState.Buffer calloc(int capacity) { return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link OVRInputState.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static OVRInputState.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); } /** * Create a {@link OVRInputState.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static OVRInputState.Buffer create(long address, int capacity) { return new Buffer(address, capacity); } /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */ @Nullable public static OVRInputState.Buffer createSafe(long address, int capacity) { return address == NULL ? null : new Buffer(address, capacity); } // ----------------------------------- /** Deprecated for removal in 3.4.0. Use {@link #malloc(MemoryStack)} instead. */ @Deprecated public static OVRInputState mallocStack() { return malloc(stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(MemoryStack)} instead. */ @Deprecated public static OVRInputState callocStack() { return calloc(stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #malloc(MemoryStack)} instead. */ @Deprecated public static OVRInputState mallocStack(MemoryStack stack) { return malloc(stack); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(MemoryStack)} instead. */ @Deprecated public static OVRInputState callocStack(MemoryStack stack) { return calloc(stack); } /** Deprecated for removal in 3.4.0. Use {@link #malloc(int, MemoryStack)} instead. */ @Deprecated public static OVRInputState.Buffer mallocStack(int capacity) { return malloc(capacity, stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(int, MemoryStack)} instead. */ @Deprecated public static OVRInputState.Buffer callocStack(int capacity) { return calloc(capacity, stackGet()); } /** Deprecated for removal in 3.4.0. Use {@link #malloc(int, MemoryStack)} instead. */ @Deprecated public static OVRInputState.Buffer mallocStack(int capacity, MemoryStack stack) { return malloc(capacity, stack); } /** Deprecated for removal in 3.4.0. Use {@link #calloc(int, MemoryStack)} instead. */ @Deprecated public static OVRInputState.Buffer callocStack(int capacity, MemoryStack stack) { return calloc(capacity, stack); } /** * Returns a new {@code OVRInputState} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static OVRInputState malloc(MemoryStack stack) { return new OVRInputState(stack.nmalloc(ALIGNOF, SIZEOF), null); } /** * Returns a new {@code OVRInputState} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static OVRInputState calloc(MemoryStack stack) { return new OVRInputState(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); } /** * Returns a new {@link OVRInputState.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static OVRInputState.Buffer malloc(int capacity, MemoryStack stack) { return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link OVRInputState.Buffer} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static OVRInputState.Buffer calloc(int capacity, MemoryStack stack) { return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } // ----------------------------------- /** Unsafe version of {@link #TimeInSeconds}. */ public static double nTimeInSeconds(long struct) { return UNSAFE.getDouble(null, struct + OVRInputState.TIMEINSECONDS); } /** Unsafe version of {@link #Buttons}. */ public static int nButtons(long struct) { return UNSAFE.getInt(null, struct + OVRInputState.BUTTONS); } /** Unsafe version of {@link #Touches}. */ public static int nTouches(long struct) { return UNSAFE.getInt(null, struct + OVRInputState.TOUCHES); } /** Unsafe version of {@link #IndexTrigger}. */ public static FloatBuffer nIndexTrigger(long struct) { return memFloatBuffer(struct + OVRInputState.INDEXTRIGGER, ovrHand_Count); } /** Unsafe version of {@link #IndexTrigger(int) IndexTrigger}. */ public static float nIndexTrigger(long struct, int index) { return UNSAFE.getFloat(null, struct + OVRInputState.INDEXTRIGGER + check(index, ovrHand_Count) * 4); } /** Unsafe version of {@link #HandTrigger}. */ public static FloatBuffer nHandTrigger(long struct) { return memFloatBuffer(struct + OVRInputState.HANDTRIGGER, ovrHand_Count); } /** Unsafe version of {@link #HandTrigger(int) HandTrigger}. */ public static float nHandTrigger(long struct, int index) { return UNSAFE.getFloat(null, struct + OVRInputState.HANDTRIGGER + check(index, ovrHand_Count) * 4); } /** Unsafe version of {@link #Thumbstick}. */ public static OVRVector2f.Buffer nThumbstick(long struct) { return OVRVector2f.create(struct + OVRInputState.THUMBSTICK, ovrHand_Count); } /** Unsafe version of {@link #Thumbstick(int) Thumbstick}. */ public static OVRVector2f nThumbstick(long struct, int index) { return OVRVector2f.create(struct + OVRInputState.THUMBSTICK + check(index, ovrHand_Count) * OVRVector2f.SIZEOF); } /** Unsafe version of {@link #ControllerType}. */ public static int nControllerType(long struct) { return UNSAFE.getInt(null, struct + OVRInputState.CONTROLLERTYPE); } /** Unsafe version of {@link #IndexTriggerNoDeadzone}. */ public static FloatBuffer nIndexTriggerNoDeadzone(long struct) { return memFloatBuffer(struct + OVRInputState.INDEXTRIGGERNODEADZONE, ovrHand_Count); } /** Unsafe version of {@link #IndexTriggerNoDeadzone(int) IndexTriggerNoDeadzone}. */ public static float nIndexTriggerNoDeadzone(long struct, int index) { return UNSAFE.getFloat(null, struct + OVRInputState.INDEXTRIGGERNODEADZONE + check(index, ovrHand_Count) * 4); } /** Unsafe version of {@link #HandTriggerNoDeadzone}. */ public static FloatBuffer nHandTriggerNoDeadzone(long struct) { return memFloatBuffer(struct + OVRInputState.HANDTRIGGERNODEADZONE, ovrHand_Count); } /** Unsafe version of {@link #HandTriggerNoDeadzone(int) HandTriggerNoDeadzone}. */ public static float nHandTriggerNoDeadzone(long struct, int index) { return UNSAFE.getFloat(null, struct + OVRInputState.HANDTRIGGERNODEADZONE + check(index, ovrHand_Count) * 4); } /** Unsafe version of {@link #ThumbstickNoDeadzone}. */ public static OVRVector2f.Buffer nThumbstickNoDeadzone(long struct) { return OVRVector2f.create(struct + OVRInputState.THUMBSTICKNODEADZONE, ovrHand_Count); } /** Unsafe version of {@link #ThumbstickNoDeadzone(int) ThumbstickNoDeadzone}. */ public static OVRVector2f nThumbstickNoDeadzone(long struct, int index) { return OVRVector2f.create(struct + OVRInputState.THUMBSTICKNODEADZONE + check(index, ovrHand_Count) * OVRVector2f.SIZEOF); } /** Unsafe version of {@link #IndexTriggerRaw}. */ public static FloatBuffer nIndexTriggerRaw(long struct) { return memFloatBuffer(struct + OVRInputState.INDEXTRIGGERRAW, ovrHand_Count); } /** Unsafe version of {@link #IndexTriggerRaw(int) IndexTriggerRaw}. */ public static float nIndexTriggerRaw(long struct, int index) { return UNSAFE.getFloat(null, struct + OVRInputState.INDEXTRIGGERRAW + check(index, ovrHand_Count) * 4); } /** Unsafe version of {@link #HandTriggerRaw}. */ public static FloatBuffer nHandTriggerRaw(long struct) { return memFloatBuffer(struct + OVRInputState.HANDTRIGGERRAW, ovrHand_Count); } /** Unsafe version of {@link #HandTriggerRaw(int) HandTriggerRaw}. */ public static float nHandTriggerRaw(long struct, int index) { return UNSAFE.getFloat(null, struct + OVRInputState.HANDTRIGGERRAW + check(index, ovrHand_Count) * 4); } /** Unsafe version of {@link #ThumbstickRaw}. */ public static OVRVector2f.Buffer nThumbstickRaw(long struct) { return OVRVector2f.create(struct + OVRInputState.THUMBSTICKRAW, ovrHand_Count); } /** Unsafe version of {@link #ThumbstickRaw(int) ThumbstickRaw}. */ public static OVRVector2f nThumbstickRaw(long struct, int index) { return OVRVector2f.create(struct + OVRInputState.THUMBSTICKRAW + check(index, ovrHand_Count) * OVRVector2f.SIZEOF); } // ----------------------------------- /** An array of {@link OVRInputState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { private static final OVRInputState ELEMENT_FACTORY = OVRInputState.create(-1L); /** * Creates a new {@code OVRInputState.Buffer} instance backed by the specified container. * *

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values * will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided * by {@link OVRInputState#SIZEOF}, and its mark will be undefined.

* *

The created buffer instance holds a strong reference to the container object.

*/ public Buffer(ByteBuffer container) { super(container, container.remaining() / SIZEOF); } public Buffer(long address, int cap) { super(address, null, -1, 0, cap, cap); } Buffer(long address, @Nullable ByteBuffer container, int mark, int pos, int lim, int cap) { super(address, container, mark, pos, lim, cap); } @Override protected Buffer self() { return this; } @Override protected OVRInputState getElementFactory() { return ELEMENT_FACTORY; } /** @return the value of the {@link OVRInputState#TimeInSeconds} field. */ public double TimeInSeconds() { return OVRInputState.nTimeInSeconds(address()); } /** @return the value of the {@link OVRInputState#Buttons} field. */ @NativeType("unsigned int") public int Buttons() { return OVRInputState.nButtons(address()); } /** @return the value of the {@link OVRInputState#Touches} field. */ @NativeType("unsigned int") public int Touches() { return OVRInputState.nTouches(address()); } /** @return a {@link FloatBuffer} view of the {@link OVRInputState#IndexTrigger} field. */ @NativeType("float[ovrHand_Count]") public FloatBuffer IndexTrigger() { return OVRInputState.nIndexTrigger(address()); } /** @return the value at the specified index of the {@link OVRInputState#IndexTrigger} field. */ public float IndexTrigger(int index) { return OVRInputState.nIndexTrigger(address(), index); } /** @return a {@link FloatBuffer} view of the {@link OVRInputState#HandTrigger} field. */ @NativeType("float[ovrHand_Count]") public FloatBuffer HandTrigger() { return OVRInputState.nHandTrigger(address()); } /** @return the value at the specified index of the {@link OVRInputState#HandTrigger} field. */ public float HandTrigger(int index) { return OVRInputState.nHandTrigger(address(), index); } /** @return a {@link OVRVector2f}.Buffer view of the {@link OVRInputState#Thumbstick} field. */ @NativeType("ovrVector2f[ovrHand_Count]") public OVRVector2f.Buffer Thumbstick() { return OVRInputState.nThumbstick(address()); } /** @return a {@link OVRVector2f} view of the struct at the specified index of the {@link OVRInputState#Thumbstick} field. */ @NativeType("ovrVector2f") public OVRVector2f Thumbstick(int index) { return OVRInputState.nThumbstick(address(), index); } /** @return the value of the {@link OVRInputState#ControllerType} field. */ @NativeType("ovrControllerType") public int ControllerType() { return OVRInputState.nControllerType(address()); } /** @return a {@link FloatBuffer} view of the {@link OVRInputState#IndexTriggerNoDeadzone} field. */ @NativeType("float[ovrHand_Count]") public FloatBuffer IndexTriggerNoDeadzone() { return OVRInputState.nIndexTriggerNoDeadzone(address()); } /** @return the value at the specified index of the {@link OVRInputState#IndexTriggerNoDeadzone} field. */ public float IndexTriggerNoDeadzone(int index) { return OVRInputState.nIndexTriggerNoDeadzone(address(), index); } /** @return a {@link FloatBuffer} view of the {@link OVRInputState#HandTriggerNoDeadzone} field. */ @NativeType("float[ovrHand_Count]") public FloatBuffer HandTriggerNoDeadzone() { return OVRInputState.nHandTriggerNoDeadzone(address()); } /** @return the value at the specified index of the {@link OVRInputState#HandTriggerNoDeadzone} field. */ public float HandTriggerNoDeadzone(int index) { return OVRInputState.nHandTriggerNoDeadzone(address(), index); } /** @return a {@link OVRVector2f}.Buffer view of the {@link OVRInputState#ThumbstickNoDeadzone} field. */ @NativeType("ovrVector2f[ovrHand_Count]") public OVRVector2f.Buffer ThumbstickNoDeadzone() { return OVRInputState.nThumbstickNoDeadzone(address()); } /** @return a {@link OVRVector2f} view of the struct at the specified index of the {@link OVRInputState#ThumbstickNoDeadzone} field. */ @NativeType("ovrVector2f") public OVRVector2f ThumbstickNoDeadzone(int index) { return OVRInputState.nThumbstickNoDeadzone(address(), index); } /** @return a {@link FloatBuffer} view of the {@link OVRInputState#IndexTriggerRaw} field. */ @NativeType("float[ovrHand_Count]") public FloatBuffer IndexTriggerRaw() { return OVRInputState.nIndexTriggerRaw(address()); } /** @return the value at the specified index of the {@link OVRInputState#IndexTriggerRaw} field. */ public float IndexTriggerRaw(int index) { return OVRInputState.nIndexTriggerRaw(address(), index); } /** @return a {@link FloatBuffer} view of the {@link OVRInputState#HandTriggerRaw} field. */ @NativeType("float[ovrHand_Count]") public FloatBuffer HandTriggerRaw() { return OVRInputState.nHandTriggerRaw(address()); } /** @return the value at the specified index of the {@link OVRInputState#HandTriggerRaw} field. */ public float HandTriggerRaw(int index) { return OVRInputState.nHandTriggerRaw(address(), index); } /** @return a {@link OVRVector2f}.Buffer view of the {@link OVRInputState#ThumbstickRaw} field. */ @NativeType("ovrVector2f[ovrHand_Count]") public OVRVector2f.Buffer ThumbstickRaw() { return OVRInputState.nThumbstickRaw(address()); } /** @return a {@link OVRVector2f} view of the struct at the specified index of the {@link OVRInputState#ThumbstickRaw} field. */ @NativeType("ovrVector2f") public OVRVector2f ThumbstickRaw(int index) { return OVRInputState.nThumbstickRaw(address(), index); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy