Class KEYBDINPUT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • WVK, WSCAN, DWFLAGS, TIME, DWEXTRAINFO

        The struct member offsets.
    • Constructor Detail

      • KEYBDINPUT

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

        public short wVk()
        Returns the value of the wVk field.
      • wScan

        public short wScan()
        Returns the value of the wScan field.
      • dwFlags

        public int dwFlags()
        Returns the value of the dwFlags field.
      • time

        public int time()
        Returns the value of the time field.
      • dwExtraInfo

        public long dwExtraInfo()
        Returns the value of the dwExtraInfo field.
      • wVk

        public KEYBDINPUT wVk​(short value)
        Sets the specified value to the wVk field.
      • wScan

        public KEYBDINPUT wScan​(short value)
        Sets the specified value to the wScan field.
      • dwFlags

        public KEYBDINPUT dwFlags​(int value)
        Sets the specified value to the dwFlags field.
      • time

        public KEYBDINPUT time​(int value)
        Sets the specified value to the time field.
      • dwExtraInfo

        public KEYBDINPUT dwExtraInfo​(long value)
        Sets the specified value to the dwExtraInfo field.
      • set

        public KEYBDINPUT set​(short wVk,
                              short wScan,
                              int dwFlags,
                              int time,
                              long dwExtraInfo)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static KEYBDINPUT.Buffer callocStack​(int capacity,
                                                    MemoryStack stack)
        Returns a new KEYBDINPUT.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
      • nwVk

        public static short nwVk​(long struct)
        Unsafe version of wVk().
      • nwScan

        public static short nwScan​(long struct)
        Unsafe version of wScan().
      • ndwFlags

        public static int ndwFlags​(long struct)
        Unsafe version of dwFlags().
      • ntime

        public static int ntime​(long struct)
        Unsafe version of time().
      • ndwExtraInfo

        public static long ndwExtraInfo​(long struct)
        Unsafe version of dwExtraInfo().
      • nwVk

        public static void nwVk​(long struct,
                                short value)
        Unsafe version of wVk.
      • nwScan

        public static void nwScan​(long struct,
                                  short value)
        Unsafe version of wScan.
      • ndwFlags

        public static void ndwFlags​(long struct,
                                    int value)
        Unsafe version of dwFlags.
      • ntime

        public static void ntime​(long struct,
                                 int value)
        Unsafe version of time.
      • ndwExtraInfo

        public static void ndwExtraInfo​(long struct,
                                        long value)
        Unsafe version of dwExtraInfo.