Package org.lwjgl.openvr
Class InputDigitalActionData
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class InputDigitalActionData
extends Struct<InputDigitalActionData>
implements NativeResource
Layout
struct InputDigitalActionData_t {
bool bActive()
;
VRInputValueHandle_t activeOrigin()
;
bool bState()
;
bool bChanged()
;
float fUpdateTime()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionInputDigitalActionData
(ByteBuffer container) Creates aInputDigitalActionData
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
the origin that caused this action's current stateboolean
bActive()
whether or not this action is currently available to be bound in the active action setboolean
bChanged()
this is true if the state has changed since the last frameboolean
bState()
the current state of this action; will be true if currently pressedstatic InputDigitalActionData
calloc()
Returns a newInputDigitalActionData
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newInputDigitalActionData.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newInputDigitalActionData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputDigitalActionData
calloc
(MemoryStack stack) Returns a newInputDigitalActionData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static InputDigitalActionData
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static InputDigitalActionData
callocStack
(MemoryStack stack) Deprecated.static InputDigitalActionData
create()
Returns a newInputDigitalActionData
instance allocated withBufferUtils
.create
(int capacity) Returns a newInputDigitalActionData.Buffer
instance allocated withBufferUtils
.static InputDigitalActionData
create
(long address) Returns a newInputDigitalActionData
instance for the specified memory address.create
(long address, int capacity) Create aInputDigitalActionData.Buffer
instance at the specified memory.static InputDigitalActionData
createSafe
(long address) createSafe
(long address, int capacity) float
time relative to now when this event happened.static InputDigitalActionData
malloc()
Returns a newInputDigitalActionData
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newInputDigitalActionData.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newInputDigitalActionData.Buffer
instance allocated on the specifiedMemoryStack
.static InputDigitalActionData
malloc
(MemoryStack stack) Returns a newInputDigitalActionData
instance allocated on the specifiedMemoryStack
.static InputDigitalActionData
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static InputDigitalActionData
mallocStack
(MemoryStack stack) Deprecated.static long
nactiveOrigin
(long struct) Unsafe version ofactiveOrigin()
.static boolean
nbActive
(long struct) Unsafe version ofbActive()
.static boolean
nbChanged
(long struct) Unsafe version ofbChanged()
.static boolean
nbState
(long struct) Unsafe version ofbState()
.static float
nfUpdateTime
(long struct) Unsafe version offUpdateTime()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
BACTIVE
public static final int BACTIVEThe struct member offsets. -
ACTIVEORIGIN
public static final int ACTIVEORIGINThe struct member offsets. -
BSTATE
public static final int BSTATEThe struct member offsets. -
BCHANGED
public static final int BCHANGEDThe struct member offsets. -
FUPDATETIME
public static final int FUPDATETIMEThe struct member offsets.
-
-
Constructor Details
-
InputDigitalActionData
Creates aInputDigitalActionData
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<InputDigitalActionData>
-
bActive
public boolean bActive()whether or not this action is currently available to be bound in the active action set -
activeOrigin
public long activeOrigin()the origin that caused this action's current state -
bState
public boolean bState()the current state of this action; will be true if currently pressed -
bChanged
public boolean bChanged()this is true if the state has changed since the last frame -
fUpdateTime
public float fUpdateTime()time relative to now when this event happened. Will be negative to indicate a past time. -
malloc
Returns a newInputDigitalActionData
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newInputDigitalActionData
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newInputDigitalActionData
instance allocated withBufferUtils
. -
create
Returns a newInputDigitalActionData
instance for the specified memory address. -
createSafe
-
malloc
Returns a newInputDigitalActionData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newInputDigitalActionData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newInputDigitalActionData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aInputDigitalActionData.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static InputDigitalActionData.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static InputDigitalActionData.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newInputDigitalActionData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newInputDigitalActionData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newInputDigitalActionData.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newInputDigitalActionData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nbActive
public static boolean nbActive(long struct) Unsafe version ofbActive()
. -
nactiveOrigin
public static long nactiveOrigin(long struct) Unsafe version ofactiveOrigin()
. -
nbState
public static boolean nbState(long struct) Unsafe version ofbState()
. -
nbChanged
public static boolean nbChanged(long struct) Unsafe version ofbChanged()
. -
nfUpdateTime
public static float nfUpdateTime(long struct) Unsafe version offUpdateTime()
.
-