Class INPUT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, DUMMYUNIONNAME, DUMMYUNIONNAME_MI, DUMMYUNIONNAME_KI, DUMMYUNIONNAME_HI

        The struct member offsets.
    • Constructor Detail

      • INPUT

        public INPUT​(java.nio.ByteBuffer container)
        Creates a INPUT 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
      • type

        public int type()
        Returns the value of the type field.
      • DUMMYUNIONNAME_mi

        public MOUSEINPUT DUMMYUNIONNAME_mi()
        Returns a MOUSEINPUT view of the DUMMYUNIONNAME.mi field.
      • DUMMYUNIONNAME_ki

        public KEYBDINPUT DUMMYUNIONNAME_ki()
        Returns a KEYBDINPUT view of the DUMMYUNIONNAME.ki field.
      • type

        public INPUT type​(int value)
        Sets the specified value to the type field.
      • DUMMYUNIONNAME_mi

        public INPUT DUMMYUNIONNAME_mi​(MOUSEINPUT value)
        Copies the specified MOUSEINPUT to the DUMMYUNIONNAME.mi field.
      • DUMMYUNIONNAME_mi

        public INPUT DUMMYUNIONNAME_mi​(java.util.function.Consumer<MOUSEINPUT> consumer)
        Passes the DUMMYUNIONNAME.mi field to the specified Consumer.
      • DUMMYUNIONNAME_ki

        public INPUT DUMMYUNIONNAME_ki​(KEYBDINPUT value)
        Copies the specified KEYBDINPUT to the DUMMYUNIONNAME.ki field.
      • DUMMYUNIONNAME_ki

        public INPUT DUMMYUNIONNAME_ki​(java.util.function.Consumer<KEYBDINPUT> consumer)
        Passes the DUMMYUNIONNAME.ki field to the specified Consumer.
      • DUMMYUNIONNAME_hi

        public INPUT DUMMYUNIONNAME_hi​(java.util.function.Consumer<HARDWAREINPUT> consumer)
        Passes the DUMMYUNIONNAME.hi field to the specified Consumer.
      • set

        public INPUT set​(INPUT src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static INPUT malloc()
        Returns a new INPUT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static INPUT calloc()
        Returns a new INPUT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static INPUT create()
        Returns a new INPUT instance allocated with BufferUtils.
      • create

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

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

        public static INPUT.Buffer malloc​(int capacity)
        Returns a new INPUT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static INPUT.Buffer calloc​(int capacity)
        Returns a new INPUT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

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

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

        public static INPUT mallocStack()
        Returns a new INPUT instance allocated on the thread-local MemoryStack.
      • callocStack

        public static INPUT callocStack()
        Returns a new INPUT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static INPUT mallocStack​(MemoryStack stack)
        Returns a new INPUT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static INPUT callocStack​(MemoryStack stack)
        Returns a new INPUT instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static INPUT.Buffer mallocStack​(int capacity)
        Returns a new INPUT.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static INPUT.Buffer callocStack​(int capacity)
        Returns a new INPUT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

        public static INPUT.Buffer mallocStack​(int capacity,
                                               MemoryStack stack)
        Returns a new INPUT.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static INPUT.Buffer callocStack​(int capacity,
                                               MemoryStack stack)
        Returns a new INPUT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntype

        public static int ntype​(long struct)
        Unsafe version of type().
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.