Class VREvent

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREvent>
org.lwjgl.openvr.VREvent
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VREvent extends org.lwjgl.system.Struct<VREvent> implements org.lwjgl.system.NativeResource
An event posted by the server to all running applications.

Layout


 struct VREvent_t {
     uint32_t eventType();
     TrackedDeviceIndex_t trackedDeviceIndex();
     float eventAgeSeconds();
     VREvent_Data_t data();
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of VREvent structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    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 size in bytes.
    static final int
    The struct member offsets.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    VREvent(ByteBuffer container)
    Creates a VREvent instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    static VREvent
    Returns a new VREvent instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new VREvent.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new VREvent.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static VREvent
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new VREvent instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static VREvent
    Deprecated.
    callocStack(int capacity)
    Deprecated.
    callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static VREvent
    callocStack(org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static VREvent
    Returns a new VREvent instance allocated with BufferUtils.
    create(int capacity)
    Returns a new VREvent.Buffer instance allocated with BufferUtils.
    static VREvent
    create(long address)
    Returns a new VREvent instance for the specified memory address.
    create(long address, int capacity)
    Create a VREvent.Buffer instance at the specified memory.
    static @Nullable VREvent
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable VREvent.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    more information about the event.
    float
    the age of the event in seconds
    int
    the type of the event.
    static VREvent
    Returns a new VREvent instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new VREvent.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new VREvent.Buffer instance allocated on the specified MemoryStack.
    static VREvent
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new VREvent instance allocated on the specified MemoryStack.
    static VREvent
    Deprecated.
    mallocStack(int capacity)
    Deprecated.
    mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
    Deprecated.
    static VREvent
    mallocStack(org.lwjgl.system.MemoryStack stack)
    Deprecated.
    ndata(long struct)
    Unsafe version of data().
    static float
    neventAgeSeconds(long struct)
    Unsafe version of eventAgeSeconds().
    static int
    neventType(long struct)
    Unsafe version of eventType().
    static int
    ntrackedDeviceIndex(long struct)
    Unsafe version of trackedDeviceIndex().
    int
     
    int
    the tracked device index of the event.

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free