Class SDL_GamepadButtonEvent

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GamepadButtonEvent extends Struct<SDL_GamepadButtonEvent> implements NativeResource
struct SDL_GamepadButtonEvent {
    SDL_EventType type;
    Uint32 reserved;
    Uint64 timestamp;
    SDL_JoystickID which;
    Uint8 button;
    bool down;
    Uint8 padding1;
    Uint8 padding2;
}
  • 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.
    • RESERVED

      public static final int RESERVED
      The struct member offsets.
    • TIMESTAMP

      public static final int TIMESTAMP
      The struct member offsets.
    • WHICH

      public static final int WHICH
      The struct member offsets.
    • BUTTON

      public static final int BUTTON
      The struct member offsets.
    • DOWN

      public static final int DOWN
      The struct member offsets.
    • PADDING1

      public static final int PADDING1
      The struct member offsets.
    • PADDING2

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

    • SDL_GamepadButtonEvent

      public SDL_GamepadButtonEvent(ByteBuffer container)
      Creates a SDL_GamepadButtonEvent 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