Class VREventKeyboard

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

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

    Member documentation

    • cNewInput[8] – up to 8 bytes of new input
    • uUserValue – possible flags about the new input

    Layout

    
     struct VREvent_Keyboard_t {
         char cNewInput[8];
         uint64_t uUserValue;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VREventKeyboard.Buffer
      An array of VREventKeyboard structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

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

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int CNEWINPUT
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int UUSERVALUE
      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
      VREventKeyboard​(java.nio.ByteBuffer container)
      Creates a VREventKeyboard instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • CNEWINPUT, UUSERVALUE

        The struct member offsets.
    • Constructor Detail

      • VREventKeyboard

        public VREventKeyboard​(java.nio.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 Detail

      • sizeof

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

        public java.nio.ByteBuffer cNewInput()
        Returns a ByteBuffer view of the cNewInput field.
      • cNewInput

        public byte cNewInput​(int index)
        Returns the value at the specified index of the cNewInput field.
      • uUserValue

        public long uUserValue()
        Returns the value of the uUserValue field.
      • create

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

        @Nullable
        public static 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

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

        public static java.nio.ByteBuffer ncNewInput​(long struct)
        Unsafe version of cNewInput().
      • ncNewInput

        public static byte ncNewInput​(long struct,
                                      int index)
        Unsafe version of cNewInput.
      • nuUserValue

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