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.NativeResource
Member 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 toUpdateActionState
deltaY
– teltas since the previous call toUpdateActionState
deltaZ
– teltas since the previous call toUpdateActionState
fUpdateTime
– 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 class
InputAnalogActionData.Buffer
An array ofInputAnalogActionData
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVEORIGIN
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
BACTIVE
DELTAX
DELTAY
DELTAZ
FUPDATETIMEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
X
Y
ZThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description InputAnalogActionData(java.nio.ByteBuffer container)
Creates aInputAnalogActionData
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
activeOrigin()
Returns the value of theactiveOrigin
field.boolean
bActive()
Returns the value of thebActive
field.static InputAnalogActionData
calloc()
Returns a newInputAnalogActionData
instance allocated withmemCalloc
.static InputAnalogActionData.Buffer
calloc(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated withmemCalloc
.static InputAnalogActionData
callocStack()
Returns a newInputAnalogActionData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static InputAnalogActionData.Buffer
callocStack(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static InputAnalogActionData.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputAnalogActionData
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputAnalogActionData
create()
Returns a newInputAnalogActionData
instance allocated withBufferUtils
.static InputAnalogActionData.Buffer
create(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated withBufferUtils
.static InputAnalogActionData
create(long address)
Returns a newInputAnalogActionData
instance for the specified memory address.static InputAnalogActionData.Buffer
create(long address, int capacity)
Create aInputAnalogActionData.Buffer
instance at the specified memory.static InputAnalogActionData
createSafe(long address)
static InputAnalogActionData.Buffer
createSafe(long address, int capacity)
float
deltaX()
Returns the value of thedeltaX
field.float
deltaY()
Returns the value of thedeltaY
field.float
deltaZ()
Returns the value of thedeltaZ
field.float
fUpdateTime()
Returns the value of thefUpdateTime
field.static InputAnalogActionData
malloc()
Returns a newInputAnalogActionData
instance allocated withmemAlloc
.static InputAnalogActionData.Buffer
malloc(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated withmemAlloc
.static InputAnalogActionData
mallocStack()
Returns a newInputAnalogActionData
instance allocated on the thread-localMemoryStack
.static InputAnalogActionData.Buffer
mallocStack(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated on the thread-localMemoryStack
.static InputAnalogActionData.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData.Buffer
instance allocated on the specifiedMemoryStack
.static InputAnalogActionData
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData
instance allocated on the specifiedMemoryStack
.static long
nactiveOrigin(long struct)
Unsafe version ofactiveOrigin()
.static boolean
nbActive(long struct)
Unsafe version ofbActive()
.static float
ndeltaX(long struct)
Unsafe version ofdeltaX()
.static float
ndeltaY(long struct)
Unsafe version ofdeltaY()
.static float
ndeltaZ(long struct)
Unsafe version ofdeltaZ()
.static float
nfUpdateTime(long struct)
Unsafe version offUpdateTime()
.static float
nx(long struct)
Unsafe version ofx()
.static float
ny(long struct)
Unsafe version ofy()
.static float
nz(long struct)
Unsafe version ofz()
.int
sizeof()
float
x()
Returns the value of thex
field.float
y()
Returns the value of they
field.float
z()
Returns the value of thez
field.
-
-
-
Constructor Detail
-
InputAnalogActionData
public InputAnalogActionData(java.nio.ByteBuffer container)
Creates aInputAnalogActionData
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
bActive
public boolean bActive()
Returns the value of thebActive
field.
-
activeOrigin
public long activeOrigin()
Returns the value of theactiveOrigin
field.
-
x
public float x()
Returns the value of thex
field.
-
y
public float y()
Returns the value of they
field.
-
z
public float z()
Returns the value of thez
field.
-
deltaX
public float deltaX()
Returns the value of thedeltaX
field.
-
deltaY
public float deltaY()
Returns the value of thedeltaY
field.
-
deltaZ
public float deltaZ()
Returns the value of thedeltaZ
field.
-
fUpdateTime
public float fUpdateTime()
Returns the value of thefUpdateTime
field.
-
malloc
public static InputAnalogActionData malloc()
Returns a newInputAnalogActionData
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static InputAnalogActionData calloc()
Returns a newInputAnalogActionData
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static InputAnalogActionData create()
Returns a newInputAnalogActionData
instance allocated withBufferUtils
.
-
create
public static InputAnalogActionData create(long address)
Returns a newInputAnalogActionData
instance for the specified memory address.
-
createSafe
@Nullable public static InputAnalogActionData createSafe(long address)
-
malloc
public static InputAnalogActionData.Buffer malloc(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static InputAnalogActionData.Buffer calloc(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static InputAnalogActionData.Buffer create(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static InputAnalogActionData.Buffer create(long address, int capacity)
Create aInputAnalogActionData.Buffer
instance 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 newInputAnalogActionData
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static InputAnalogActionData callocStack()
Returns a newInputAnalogActionData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static InputAnalogActionData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static InputAnalogActionData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newInputAnalogActionData
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static InputAnalogActionData.Buffer callocStack(int capacity)
Returns a newInputAnalogActionData.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-