Class VREventKeyboard

  • All Implemented Interfaces:
    Pointer

    public class VREventKeyboard
    extends Struct
    Used for keyboard events.

    Member documentation

    • cNewInput – 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;
     }
    • 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class 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.
      • 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().