Class INPUT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class INPUT extends Struct<INPUT> implements NativeResource
Used by User32.SendInput(org.lwjgl.system.windows.INPUT.Buffer, int) to store information for synthesizing input events such as keystrokes, mouse movement, and mouse clicks.

Layout


 struct INPUT {
     DWORD type();
     union {
         MOUSEINPUT mi;
         KEYBDINPUT ki;
         HARDWAREINPUT hi;
     } DUMMYUNIONNAME;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • DUMMYUNIONNAME

      public static final int DUMMYUNIONNAME
      The struct member offsets.
    • DUMMYUNIONNAME_MI

      public static final int DUMMYUNIONNAME_MI
      The struct member offsets.
    • DUMMYUNIONNAME_KI

      public static final int DUMMYUNIONNAME_KI
      The struct member offsets.
    • DUMMYUNIONNAME_HI

      public static final int DUMMYUNIONNAME_HI
      The struct member offsets.
  • Constructor Details

    • INPUT

      public INPUT(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 Details