Package org.lwjgl.openvr
Class InputAnalogActionData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.InputAnalogActionData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class InputAnalogActionData extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
bActive– whether or not this action is currently available to be bound in the active action setactiveOrigin– the origin that caused this action's current statex– the current state of this action; will be delta updates for mouse actionsy– the current state of this action; will be delta updates for mouse actionsz– the current state of this action; will be delta updates for mouse actionsdeltaX– teltas since the previous call toUpdateActionStatedeltaY– teltas since the previous call toUpdateActionStatedeltaZ– teltas since the previous call toUpdateActionStatefUpdateTime– time relative to now when this event happened. Will be negative to indicate a past time
Layout
struct InputAnalogActionData_t { bool bActive; VRInputValueHandle_t activeOrigin; float x; float y; float z; float deltaX; float deltaY; float deltaZ; float fUpdateTime; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInputAnalogActionData.BufferAn array ofInputAnalogActionDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEORIGINThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intBACTIVE
DELTAX
DELTAY
DELTAZ
FUPDATETIMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intX
Y
ZThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description InputAnalogActionData(java.nio.ByteBuffer container)Creates aInputAnalogActionDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longactiveOrigin()Returns the value of theactiveOriginfield.booleanbActive()Returns the value of thebActivefield.static InputAnalogActionDatacalloc()Returns a newInputAnalogActionDatainstance allocated withmemCalloc.static InputAnalogActionData.Buffercalloc(int capacity)Returns a newInputAnalogActionData.Bufferinstance allocated withmemCalloc.static InputAnalogActionDatacallocStack()Returns a newInputAnalogActionDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static InputAnalogActionData.BuffercallocStack(int capacity)Returns a newInputAnalogActionData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static InputAnalogActionData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputAnalogActionData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputAnalogActionDatacallocStack(org.lwjgl.system.MemoryStack stack)Returns a newInputAnalogActionDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static InputAnalogActionDatacreate()Returns a newInputAnalogActionDatainstance allocated withBufferUtils.static InputAnalogActionData.Buffercreate(int capacity)Returns a newInputAnalogActionData.Bufferinstance allocated withBufferUtils.static InputAnalogActionDatacreate(long address)Returns a newInputAnalogActionDatainstance for the specified memory address.static InputAnalogActionData.Buffercreate(long address, int capacity)Create aInputAnalogActionData.Bufferinstance at the specified memory.static InputAnalogActionDatacreateSafe(long address)static InputAnalogActionData.BuffercreateSafe(long address, int capacity)floatdeltaX()Returns the value of thedeltaXfield.floatdeltaY()Returns the value of thedeltaYfield.floatdeltaZ()Returns the value of thedeltaZfield.floatfUpdateTime()Returns the value of thefUpdateTimefield.static InputAnalogActionDatamalloc()Returns a newInputAnalogActionDatainstance allocated withmemAlloc.static InputAnalogActionData.Buffermalloc(int capacity)Returns a newInputAnalogActionData.Bufferinstance allocated withmemAlloc.static InputAnalogActionDatamallocStack()Returns a newInputAnalogActionDatainstance allocated on the thread-localMemoryStack.static InputAnalogActionData.BuffermallocStack(int capacity)Returns a newInputAnalogActionData.Bufferinstance allocated on the thread-localMemoryStack.static InputAnalogActionData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newInputAnalogActionData.Bufferinstance allocated on the specifiedMemoryStack.static InputAnalogActionDatamallocStack(org.lwjgl.system.MemoryStack stack)Returns a newInputAnalogActionDatainstance allocated on the specifiedMemoryStack.static longnactiveOrigin(long struct)Unsafe version ofactiveOrigin().static booleannbActive(long struct)Unsafe version ofbActive().static floatndeltaX(long struct)Unsafe version ofdeltaX().static floatndeltaY(long struct)Unsafe version ofdeltaY().static floatndeltaZ(long struct)Unsafe version ofdeltaZ().static floatnfUpdateTime(long struct)Unsafe version offUpdateTime().static floatnx(long struct)Unsafe version ofx().static floatny(long struct)Unsafe version ofy().static floatnz(long struct)Unsafe version ofz().intsizeof()floatx()Returns the value of thexfield.floaty()Returns the value of theyfield.floatz()Returns the value of thezfield.
-
-
-
Constructor Detail
-
InputAnalogActionData
public InputAnalogActionData(java.nio.ByteBuffer container)
Creates aInputAnalogActionDatainstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
bActive
public boolean bActive()
Returns the value of thebActivefield.
-
activeOrigin
public long activeOrigin()
Returns the value of theactiveOriginfield.
-
x
public float x()
Returns the value of thexfield.
-
y
public float y()
Returns the value of theyfield.
-
z
public float z()
Returns the value of thezfield.
-
deltaX
public float deltaX()
Returns the value of thedeltaXfield.
-
deltaY
public float deltaY()
Returns the value of thedeltaYfield.
-
deltaZ
public float deltaZ()
Returns the value of thedeltaZfield.
-
fUpdateTime
public float fUpdateTime()
Returns the value of thefUpdateTimefield.
-
malloc
public static InputAnalogActionData malloc()
Returns a newInputAnalogActionDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static InputAnalogActionData calloc()
Returns a newInputAnalogActionDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static InputAnalogActionData create()
Returns a newInputAnalogActionDatainstance allocated withBufferUtils.
-
create
public static InputAnalogActionData create(long address)
Returns a newInputAnalogActionDatainstance for the specified memory address.
-
createSafe
@Nullable public static InputAnalogActionData createSafe(long address)
-
malloc
public static InputAnalogActionData.Buffer malloc(int capacity)
Returns a newInputAnalogActionData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static InputAnalogActionData.Buffer calloc(int capacity)
Returns a newInputAnalogActionData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static InputAnalogActionData.Buffer create(int capacity)
Returns a newInputAnalogActionData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static InputAnalogActionData.Buffer create(long address, int capacity)
Create aInputAnalogActionData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static InputAnalogActionData.Buffer createSafe(long address, int capacity)
-
mallocStack
public static InputAnalogActionData mallocStack()
Returns a newInputAnalogActionDatainstance allocated on the thread-localMemoryStack.
-
callocStack
public static InputAnalogActionData callocStack()
Returns a newInputAnalogActionDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static InputAnalogActionData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static InputAnalogActionData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static InputAnalogActionData.Buffer mallocStack(int capacity)
Returns a newInputAnalogActionData.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static InputAnalogActionData.Buffer callocStack(int capacity)
Returns a newInputAnalogActionData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static InputAnalogActionData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static InputAnalogActionData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbActive
public static boolean nbActive(long struct)
Unsafe version ofbActive().
-
nactiveOrigin
public static long nactiveOrigin(long struct)
Unsafe version ofactiveOrigin().
-
nx
public static float nx(long struct)
Unsafe version ofx().
-
ny
public static float ny(long struct)
Unsafe version ofy().
-
nz
public static float nz(long struct)
Unsafe version ofz().
-
ndeltaX
public static float ndeltaX(long struct)
Unsafe version ofdeltaX().
-
ndeltaY
public static float ndeltaY(long struct)
Unsafe version ofdeltaY().
-
ndeltaZ
public static float ndeltaZ(long struct)
Unsafe version ofdeltaZ().
-
nfUpdateTime
public static float nfUpdateTime(long struct)
Unsafe version offUpdateTime().
-
-