Class SDL_GamepadSensorEvent

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GamepadSensorEvent extends Struct<SDL_GamepadSensorEvent> implements NativeResource
struct SDL_GamepadSensorEvent {
    SDL_EventType type;
    Uint32 reserved;
    Uint64 timestamp;
    SDL_JoystickID which;
    Sint32 sensor;
    float data[3];
    Uint64 sensor_timestamp;
}
  • 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.
    • SENSOR

      public static final int SENSOR
      The struct member offsets.
    • DATA

      public static final int DATA
      The struct member offsets.
    • SENSOR_TIMESTAMP

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

    • SDL_GamepadSensorEvent

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