Package org.lwjgl.sdl

Class SDL_GamepadDeviceEvent

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GamepadDeviceEvent extends Struct<SDL_GamepadDeviceEvent> implements NativeResource

 struct SDL_GamepadDeviceEvent {
     SDL_EventType type;
     Uint32 reserved;
     Uint64 timestamp;
     SDL_JoystickID which;
 }
  • 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.
  • Constructor Details

    • SDL_GamepadDeviceEvent

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