Class INPUT.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new INPUT.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by INPUT.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • type

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

        Returns a MOUSEINPUT view of the DUMMYUNIONNAME.mi field.

        Returns a KEYBDINPUT view of the field.
      • type

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

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

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

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