Class SDLJoystick

java.lang.Object
org.lwjgl.sdl.SDLJoystick

public class SDLJoystick extends Object
  • Field Details

    • SDL_JOYSTICK_TYPE_UNKNOWN

      public static final int SDL_JOYSTICK_TYPE_UNKNOWN
      See Also:
    • SDL_JOYSTICK_TYPE_GAMEPAD

      public static final int SDL_JOYSTICK_TYPE_GAMEPAD
      See Also:
    • SDL_JOYSTICK_TYPE_WHEEL

      public static final int SDL_JOYSTICK_TYPE_WHEEL
      See Also:
    • SDL_JOYSTICK_TYPE_ARCADE_STICK

      public static final int SDL_JOYSTICK_TYPE_ARCADE_STICK
      See Also:
    • SDL_JOYSTICK_TYPE_FLIGHT_STICK

      public static final int SDL_JOYSTICK_TYPE_FLIGHT_STICK
      See Also:
    • SDL_JOYSTICK_TYPE_DANCE_PAD

      public static final int SDL_JOYSTICK_TYPE_DANCE_PAD
      See Also:
    • SDL_JOYSTICK_TYPE_GUITAR

      public static final int SDL_JOYSTICK_TYPE_GUITAR
      See Also:
    • SDL_JOYSTICK_TYPE_DRUM_KIT

      public static final int SDL_JOYSTICK_TYPE_DRUM_KIT
      See Also:
    • SDL_JOYSTICK_TYPE_ARCADE_PAD

      public static final int SDL_JOYSTICK_TYPE_ARCADE_PAD
      See Also:
    • SDL_JOYSTICK_TYPE_THROTTLE

      public static final int SDL_JOYSTICK_TYPE_THROTTLE
      See Also:
    • SDL_JOYSTICK_TYPE_COUNT

      public static final int SDL_JOYSTICK_TYPE_COUNT
      See Also:
    • SDL_JOYSTICK_CONNECTION_INVALID

      public static final int SDL_JOYSTICK_CONNECTION_INVALID
      See Also:
    • SDL_JOYSTICK_CONNECTION_UNKNOWN

      public static final int SDL_JOYSTICK_CONNECTION_UNKNOWN
      See Also:
    • SDL_JOYSTICK_CONNECTION_WIRED

      public static final int SDL_JOYSTICK_CONNECTION_WIRED
      See Also:
    • SDL_JOYSTICK_CONNECTION_WIRELESS

      public static final int SDL_JOYSTICK_CONNECTION_WIRELESS
      See Also:
    • SDL_JOYSTICK_AXIS_MAX

      public static final int SDL_JOYSTICK_AXIS_MAX
      See Also:
    • SDL_JOYSTICK_AXIS_MIN

      public static final int SDL_JOYSTICK_AXIS_MIN
      See Also:
    • SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN

      public static final String SDL_PROP_JOYSTICK_CAP_MONO_LED_BOOLEAN
      See Also:
    • SDL_PROP_JOYSTICK_CAP_RGB_LED_BOOLEAN

      public static final String SDL_PROP_JOYSTICK_CAP_RGB_LED_BOOLEAN
      See Also:
    • SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN

      public static final String SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN
      See Also:
    • SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN

      public static final String SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN
      See Also:
    • SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN

      public static final String SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN
      See Also:
    • SDL_HAT_CENTERED

      public static final int SDL_HAT_CENTERED
      See Also:
    • SDL_HAT_UP

      public static final int SDL_HAT_UP
      See Also:
    • SDL_HAT_RIGHT

      public static final int SDL_HAT_RIGHT
      See Also:
    • SDL_HAT_DOWN

      public static final int SDL_HAT_DOWN
      See Also:
    • SDL_HAT_LEFT

      public static final int SDL_HAT_LEFT
      See Also:
    • SDL_HAT_RIGHTUP

      public static final int SDL_HAT_RIGHTUP
      See Also:
    • SDL_HAT_RIGHTDOWN

      public static final int SDL_HAT_RIGHTDOWN
      See Also:
    • SDL_HAT_LEFTUP

      public static final int SDL_HAT_LEFTUP
      See Also:
    • SDL_HAT_LEFTDOWN

      public static final int SDL_HAT_LEFTDOWN
      See Also:
  • Method Details

    • SDL_LockJoysticks

      public static void SDL_LockJoysticks()
      void SDL_LockJoysticks(void)
    • SDL_UnlockJoysticks

      public static void SDL_UnlockJoysticks()
      void SDL_UnlockJoysticks(void)
    • SDL_HasJoystick

      @NativeType("bool") public static boolean SDL_HasJoystick()
      bool SDL_HasJoystick(void)
    • nSDL_GetJoysticks

      public static long nSDL_GetJoysticks(long count)
      SDL_JoystickID * SDL_GetJoysticks(int * count)
    • SDL_GetJoysticks

      @NativeType("SDL_JoystickID *") public static @Nullable IntBuffer SDL_GetJoysticks()
      SDL_JoystickID * SDL_GetJoysticks(int * count)
    • nSDL_GetJoystickNameForID

      public static long nSDL_GetJoystickNameForID(int instance_id)
      char const * SDL_GetJoystickNameForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickNameForID

      @NativeType("char const *") public static @Nullable String SDL_GetJoystickNameForID(@NativeType("SDL_JoystickID") int instance_id)
      char const * SDL_GetJoystickNameForID(SDL_JoystickID instance_id)
    • nSDL_GetJoystickPathForID

      public static long nSDL_GetJoystickPathForID(int instance_id)
      char const * SDL_GetJoystickPathForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickPathForID

      @NativeType("char const *") public static @Nullable String SDL_GetJoystickPathForID(@NativeType("SDL_JoystickID") int instance_id)
      char const * SDL_GetJoystickPathForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickPlayerIndexForID

      public static int SDL_GetJoystickPlayerIndexForID(@NativeType("SDL_JoystickID") int instance_id)
      int SDL_GetJoystickPlayerIndexForID(SDL_JoystickID instance_id)
    • nSDL_GetJoystickGUIDForID

      public static void nSDL_GetJoystickGUIDForID(int instance_id, long __result)
      SDL_GUID SDL_GetJoystickGUIDForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickGUIDForID

      public static SDL_GUID SDL_GetJoystickGUIDForID(@NativeType("SDL_JoystickID") int instance_id, SDL_GUID __result)
      SDL_GUID SDL_GetJoystickGUIDForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickVendorForID

      @NativeType("Uint16") public static short SDL_GetJoystickVendorForID(@NativeType("SDL_JoystickID") int instance_id)
      Uint16 SDL_GetJoystickVendorForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickProductForID

      @NativeType("Uint16") public static short SDL_GetJoystickProductForID(@NativeType("SDL_JoystickID") int instance_id)
      Uint16 SDL_GetJoystickProductForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickProductVersionForID

      @NativeType("Uint16") public static short SDL_GetJoystickProductVersionForID(@NativeType("SDL_JoystickID") int instance_id)
      Uint16 SDL_GetJoystickProductVersionForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickTypeForID

      @NativeType("SDL_JoystickType") public static int SDL_GetJoystickTypeForID(@NativeType("SDL_JoystickID") int instance_id)
      SDL_JoystickType SDL_GetJoystickTypeForID(SDL_JoystickID instance_id)
    • SDL_OpenJoystick

      @NativeType("SDL_Joystick *") public static long SDL_OpenJoystick(@NativeType("SDL_JoystickID") int instance_id)
      SDL_Joystick * SDL_OpenJoystick(SDL_JoystickID instance_id)
    • SDL_GetJoystickFromID

      @NativeType("SDL_Joystick *") public static long SDL_GetJoystickFromID(@NativeType("SDL_JoystickID") int instance_id)
      SDL_Joystick * SDL_GetJoystickFromID(SDL_JoystickID instance_id)
    • SDL_GetJoystickFromPlayerIndex

      @NativeType("SDL_Joystick *") public static long SDL_GetJoystickFromPlayerIndex(int player_index)
      SDL_Joystick * SDL_GetJoystickFromPlayerIndex(int player_index)
    • nSDL_AttachVirtualJoystick

      public static int nSDL_AttachVirtualJoystick(long desc)
      SDL_JoystickID SDL_AttachVirtualJoystick(SDL_VirtualJoystickDesc const * desc)
    • SDL_AttachVirtualJoystick

      @NativeType("SDL_JoystickID") public static int SDL_AttachVirtualJoystick(@NativeType("SDL_VirtualJoystickDesc const *") SDL_VirtualJoystickDesc desc)
      SDL_JoystickID SDL_AttachVirtualJoystick(SDL_VirtualJoystickDesc const * desc)
    • SDL_DetachVirtualJoystick

      @NativeType("bool") public static boolean SDL_DetachVirtualJoystick(@NativeType("SDL_JoystickID") int instance_id)
      bool SDL_DetachVirtualJoystick(SDL_JoystickID instance_id)
    • SDL_IsJoystickVirtual

      @NativeType("bool") public static boolean SDL_IsJoystickVirtual(@NativeType("SDL_JoystickID") int instance_id)
      bool SDL_IsJoystickVirtual(SDL_JoystickID instance_id)
    • SDL_SetJoystickVirtualAxis

      @NativeType("bool") public static boolean SDL_SetJoystickVirtualAxis(@NativeType("SDL_Joystick *") long joystick, int axis, @NativeType("Sint16") short value)
      bool SDL_SetJoystickVirtualAxis(SDL_Joystick * joystick, int axis, Sint16 value)
    • SDL_SetJoystickVirtualBall

      @NativeType("bool") public static boolean SDL_SetJoystickVirtualBall(@NativeType("SDL_Joystick *") long joystick, int ball, @NativeType("Sint16") short xrel, @NativeType("Sint16") short yrel)
      bool SDL_SetJoystickVirtualBall(SDL_Joystick * joystick, int ball, Sint16 xrel, Sint16 yrel)
    • SDL_SetJoystickVirtualButton

      @NativeType("bool") public static boolean SDL_SetJoystickVirtualButton(@NativeType("SDL_Joystick *") long joystick, int button, @NativeType("bool") boolean down)
      bool SDL_SetJoystickVirtualButton(SDL_Joystick * joystick, int button, bool down)
    • SDL_SetJoystickVirtualHat

      @NativeType("bool") public static boolean SDL_SetJoystickVirtualHat(@NativeType("SDL_Joystick *") long joystick, int hat, @NativeType("Uint8") byte value)
      bool SDL_SetJoystickVirtualHat(SDL_Joystick * joystick, int hat, Uint8 value)
    • SDL_SetJoystickVirtualTouchpad

      @NativeType("bool") public static boolean SDL_SetJoystickVirtualTouchpad(@NativeType("SDL_Joystick *") long joystick, int touchpad, int finger, @NativeType("bool") boolean down, float x, float y, float pressure)
      bool SDL_SetJoystickVirtualTouchpad(SDL_Joystick * joystick, int touchpad, int finger, bool down, float x, float y, float pressure)
    • nSDL_SendJoystickVirtualSensorData

      public static boolean nSDL_SendJoystickVirtualSensorData(long joystick, int type, long sensor_timestamp, long data, int num_values)
      bool SDL_SendJoystickVirtualSensorData(SDL_Joystick * joystick, SDL_SensorType type, Uint64 sensor_timestamp, float const * data, int num_values)
    • SDL_SendJoystickVirtualSensorData

      @NativeType("bool") public static boolean SDL_SendJoystickVirtualSensorData(@NativeType("SDL_Joystick *") long joystick, @NativeType("SDL_SensorType") int type, @NativeType("Uint64") long sensor_timestamp, @NativeType("float const *") FloatBuffer data)
      bool SDL_SendJoystickVirtualSensorData(SDL_Joystick * joystick, SDL_SensorType type, Uint64 sensor_timestamp, float const * data, int num_values)
    • SDL_GetJoystickProperties

      @NativeType("SDL_PropertiesID") public static int SDL_GetJoystickProperties(@NativeType("SDL_Joystick *") long joystick)
      SDL_PropertiesID SDL_GetJoystickProperties(SDL_Joystick * joystick)
    • nSDL_GetJoystickName

      public static long nSDL_GetJoystickName(long joystick)
      char const * SDL_GetJoystickName(SDL_Joystick * joystick)
    • SDL_GetJoystickName

      @NativeType("char const *") public static @Nullable String SDL_GetJoystickName(@NativeType("SDL_Joystick *") long joystick)
      char const * SDL_GetJoystickName(SDL_Joystick * joystick)
    • nSDL_GetJoystickPath

      public static long nSDL_GetJoystickPath(long joystick)
      char const * SDL_GetJoystickPath(SDL_Joystick * joystick)
    • SDL_GetJoystickPath

      @NativeType("char const *") public static @Nullable String SDL_GetJoystickPath(@NativeType("SDL_Joystick *") long joystick)
      char const * SDL_GetJoystickPath(SDL_Joystick * joystick)
    • SDL_GetJoystickPlayerIndex

      public static int SDL_GetJoystickPlayerIndex(@NativeType("SDL_Joystick *") long joystick)
      int SDL_GetJoystickPlayerIndex(SDL_Joystick * joystick)
    • SDL_SetJoystickPlayerIndex

      @NativeType("bool") public static boolean SDL_SetJoystickPlayerIndex(@NativeType("SDL_Joystick *") long joystick, int player_index)
      bool SDL_SetJoystickPlayerIndex(SDL_Joystick * joystick, int player_index)
    • nSDL_GetJoystickGUID

      public static void nSDL_GetJoystickGUID(long joystick, long __result)
      SDL_GUID SDL_GetJoystickGUID(SDL_Joystick * joystick)
    • SDL_GetJoystickGUID

      public static SDL_GUID SDL_GetJoystickGUID(@NativeType("SDL_Joystick *") long joystick, SDL_GUID __result)
      SDL_GUID SDL_GetJoystickGUID(SDL_Joystick * joystick)
    • SDL_GetJoystickVendor

      @NativeType("Uint16") public static short SDL_GetJoystickVendor(@NativeType("SDL_Joystick *") long joystick)
      Uint16 SDL_GetJoystickVendor(SDL_Joystick * joystick)
    • SDL_GetJoystickProduct

      @NativeType("Uint16") public static short SDL_GetJoystickProduct(@NativeType("SDL_Joystick *") long joystick)
      Uint16 SDL_GetJoystickProduct(SDL_Joystick * joystick)
    • SDL_GetJoystickProductVersion

      @NativeType("Uint16") public static short SDL_GetJoystickProductVersion(@NativeType("SDL_Joystick *") long joystick)
      Uint16 SDL_GetJoystickProductVersion(SDL_Joystick * joystick)
    • SDL_GetJoystickFirmwareVersion

      @NativeType("Uint16") public static short SDL_GetJoystickFirmwareVersion(@NativeType("SDL_Joystick *") long joystick)
      Uint16 SDL_GetJoystickFirmwareVersion(SDL_Joystick * joystick)
    • nSDL_GetJoystickSerial

      public static long nSDL_GetJoystickSerial(long joystick)
      char const * SDL_GetJoystickSerial(SDL_Joystick * joystick)
    • SDL_GetJoystickSerial

      @NativeType("char const *") public static @Nullable String SDL_GetJoystickSerial(@NativeType("SDL_Joystick *") long joystick)
      char const * SDL_GetJoystickSerial(SDL_Joystick * joystick)
    • SDL_GetJoystickType

      @NativeType("SDL_JoystickType") public static int SDL_GetJoystickType(@NativeType("SDL_Joystick *") long joystick)
      SDL_JoystickType SDL_GetJoystickType(SDL_Joystick * joystick)
    • nSDL_GetJoystickGUIDInfo

      public static void nSDL_GetJoystickGUIDInfo(long guid, long vendor, long product, long version, long crc16)
      void SDL_GetJoystickGUIDInfo(SDL_GUID guid, Uint16 * vendor, Uint16 * product, Uint16 * version, Uint16 * crc16)
    • SDL_GetJoystickGUIDInfo

      public static void SDL_GetJoystickGUIDInfo(SDL_GUID guid, @NativeType("Uint16 *") @Nullable ShortBuffer vendor, @NativeType("Uint16 *") @Nullable ShortBuffer product, @NativeType("Uint16 *") @Nullable ShortBuffer version, @NativeType("Uint16 *") @Nullable ShortBuffer crc16)
      void SDL_GetJoystickGUIDInfo(SDL_GUID guid, Uint16 * vendor, Uint16 * product, Uint16 * version, Uint16 * crc16)
    • SDL_JoystickConnected

      @NativeType("bool") public static boolean SDL_JoystickConnected(@NativeType("SDL_Joystick *") long joystick)
      bool SDL_JoystickConnected(SDL_Joystick * joystick)
    • SDL_GetJoystickID

      @NativeType("SDL_JoystickID") public static int SDL_GetJoystickID(@NativeType("SDL_Joystick *") long joystick)
      SDL_JoystickID SDL_GetJoystickID(SDL_Joystick * joystick)
    • SDL_GetNumJoystickAxes

      public static int SDL_GetNumJoystickAxes(@NativeType("SDL_Joystick *") long joystick)
      int SDL_GetNumJoystickAxes(SDL_Joystick * joystick)
    • SDL_GetNumJoystickBalls

      public static int SDL_GetNumJoystickBalls(@NativeType("SDL_Joystick *") long joystick)
      int SDL_GetNumJoystickBalls(SDL_Joystick * joystick)
    • SDL_GetNumJoystickHats

      public static int SDL_GetNumJoystickHats(@NativeType("SDL_Joystick *") long joystick)
      int SDL_GetNumJoystickHats(SDL_Joystick * joystick)
    • SDL_GetNumJoystickButtons

      public static int SDL_GetNumJoystickButtons(@NativeType("SDL_Joystick *") long joystick)
      int SDL_GetNumJoystickButtons(SDL_Joystick * joystick)
    • SDL_SetJoystickEventsEnabled

      public static void SDL_SetJoystickEventsEnabled(@NativeType("bool") boolean enabled)
      void SDL_SetJoystickEventsEnabled(bool enabled)
    • SDL_JoystickEventsEnabled

      @NativeType("bool") public static boolean SDL_JoystickEventsEnabled()
      bool SDL_JoystickEventsEnabled(void)
    • SDL_UpdateJoysticks

      public static void SDL_UpdateJoysticks()
      void SDL_UpdateJoysticks(void)
    • SDL_GetJoystickAxis

      @NativeType("Sint16") public static short SDL_GetJoystickAxis(@NativeType("SDL_Joystick *") long joystick, int axis)
      Sint16 SDL_GetJoystickAxis(SDL_Joystick * joystick, int axis)
    • nSDL_GetJoystickAxisInitialState

      public static boolean nSDL_GetJoystickAxisInitialState(long joystick, int axis, long state)
      bool SDL_GetJoystickAxisInitialState(SDL_Joystick * joystick, int axis, Sint16 * state)
    • SDL_GetJoystickAxisInitialState

      @NativeType("bool") public static boolean SDL_GetJoystickAxisInitialState(@NativeType("SDL_Joystick *") long joystick, int axis, @NativeType("Sint16 *") @Nullable ShortBuffer state)
      bool SDL_GetJoystickAxisInitialState(SDL_Joystick * joystick, int axis, Sint16 * state)
    • nSDL_GetJoystickBall

      public static boolean nSDL_GetJoystickBall(long joystick, int ball, long dx, long dy)
      bool SDL_GetJoystickBall(SDL_Joystick * joystick, int ball, int * dx, int * dy)
    • SDL_GetJoystickBall

      @NativeType("bool") public static boolean SDL_GetJoystickBall(@NativeType("SDL_Joystick *") long joystick, int ball, @NativeType("int *") @Nullable IntBuffer dx, @NativeType("int *") @Nullable IntBuffer dy)
      bool SDL_GetJoystickBall(SDL_Joystick * joystick, int ball, int * dx, int * dy)
    • SDL_GetJoystickHat

      @NativeType("Uint8") public static byte SDL_GetJoystickHat(@NativeType("SDL_Joystick *") long joystick, int hat)
      Uint8 SDL_GetJoystickHat(SDL_Joystick * joystick, int hat)
    • SDL_GetJoystickButton

      @NativeType("bool") public static boolean SDL_GetJoystickButton(@NativeType("SDL_Joystick *") long joystick, int button)
      bool SDL_GetJoystickButton(SDL_Joystick * joystick, int button)
    • SDL_RumbleJoystick

      @NativeType("bool") public static boolean SDL_RumbleJoystick(@NativeType("SDL_Joystick *") long joystick, @NativeType("Uint16") short low_frequency_rumble, @NativeType("Uint16") short high_frequency_rumble, @NativeType("Uint32") int duration_ms)
      bool SDL_RumbleJoystick(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble, Uint32 duration_ms)
    • SDL_RumbleJoystickTriggers

      @NativeType("bool") public static boolean SDL_RumbleJoystickTriggers(@NativeType("SDL_Joystick *") long joystick, @NativeType("Uint16") short left_rumble, @NativeType("Uint16") short right_rumble, @NativeType("Uint32") int duration_ms)
      bool SDL_RumbleJoystickTriggers(SDL_Joystick * joystick, Uint16 left_rumble, Uint16 right_rumble, Uint32 duration_ms)
    • SDL_SetJoystickLED

      @NativeType("bool") public static boolean SDL_SetJoystickLED(@NativeType("SDL_Joystick *") long joystick, @NativeType("Uint8") byte red, @NativeType("Uint8") byte green, @NativeType("Uint8") byte blue)
      bool SDL_SetJoystickLED(SDL_Joystick * joystick, Uint8 red, Uint8 green, Uint8 blue)
    • nSDL_SendJoystickEffect

      public static boolean nSDL_SendJoystickEffect(long joystick, long data, int size)
      bool SDL_SendJoystickEffect(SDL_Joystick * joystick, void const * data, int size)
    • SDL_SendJoystickEffect

      @NativeType("bool") public static boolean SDL_SendJoystickEffect(@NativeType("SDL_Joystick *") long joystick, @NativeType("void const *") ByteBuffer data)
      bool SDL_SendJoystickEffect(SDL_Joystick * joystick, void const * data, int size)
    • SDL_CloseJoystick

      public static void SDL_CloseJoystick(@NativeType("SDL_Joystick *") long joystick)
      void SDL_CloseJoystick(SDL_Joystick * joystick)
    • SDL_GetJoystickConnectionState

      @NativeType("SDL_JoystickConnectionState") public static int SDL_GetJoystickConnectionState(@NativeType("SDL_Joystick *") long joystick)
      SDL_JoystickConnectionState SDL_GetJoystickConnectionState(SDL_Joystick * joystick)
    • nSDL_GetJoystickPowerInfo

      public static int nSDL_GetJoystickPowerInfo(long joystick, long percent)
      SDL_PowerState SDL_GetJoystickPowerInfo(SDL_Joystick * joystick, int * percent)
    • SDL_GetJoystickPowerInfo

      @NativeType("SDL_PowerState") public static int SDL_GetJoystickPowerInfo(@NativeType("SDL_Joystick *") long joystick, @NativeType("int *") @Nullable IntBuffer percent)
      SDL_PowerState SDL_GetJoystickPowerInfo(SDL_Joystick * joystick, int * percent)
    • SDL_INIT_INTERFACE

      public static void SDL_INIT_INTERFACE(SDL_VirtualJoystickDesc iface)
      void SDL_INIT_INTERFACE(SDL_VirtualJoystickDesc * iface)