Class VREventKeyboard

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VREventKeyboard>
org.lwjgl.openvr.VREventKeyboard
All Implemented Interfaces:
org.lwjgl.system.Pointer

public class VREventKeyboard extends org.lwjgl.system.Struct<VREventKeyboard>
Used for keyboard events.

Layout


 struct VREvent_Keyboard_t {
     char cNewInput()[8];
     uint64_t uUserValue();
     uint64_t overlayHandle();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • CNEWINPUT

      public static final int CNEWINPUT
      The struct member offsets.
    • UUSERVALUE

      public static final int UUSERVALUE
      The struct member offsets.
    • OVERLAYHANDLE

      public static final int OVERLAYHANDLE
      The struct member offsets.
  • Constructor Details

    • VREventKeyboard

      public VREventKeyboard(ByteBuffer container)
      Creates a VREventKeyboard instance at the current position of the specified 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.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VREventKeyboard>
    • cNewInput

      public ByteBuffer cNewInput()
      7 bytes of utf8 + null
    • cNewInputString

      public String cNewInputString()
      7 bytes of utf8 + null
    • uUserValue

      public long uUserValue()
      caller specified opaque token
    • overlayHandle

      public long overlayHandle()
      VROverlayHandle_t
    • create

      public static VREventKeyboard create(long address)
      Returns a new VREventKeyboard instance for the specified memory address.
    • createSafe

      public static @Nullable VREventKeyboard createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VREventKeyboard.Buffer create(long address, int capacity)
      Create a VREventKeyboard.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VREventKeyboard.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • ncNewInput

      public static ByteBuffer ncNewInput(long struct)
      Unsafe version of cNewInput().
    • ncNewInputString

      public static String ncNewInputString(long struct)
      Unsafe version of cNewInputString().
    • nuUserValue

      public static long nuUserValue(long struct)
      Unsafe version of uUserValue().
    • noverlayHandle

      public static long noverlayHandle(long struct)
      Unsafe version of overlayHandle().