Package org.lwjgl.sdl

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

      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

      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

      public static @Nullable String SDL_GetJoystickNameForID(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

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

      public static int SDL_GetJoystickPlayerIndexForID(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(int instance_id, SDL_GUID __result)
      SDL_GUID SDL_GetJoystickGUIDForID(SDL_JoystickID instance_id)
    • SDL_GetJoystickVendorForID

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

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

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

      public static int SDL_GetJoystickTypeForID(int instance_id)
      SDL_JoystickType SDL_GetJoystickTypeForID(SDL_JoystickID instance_id)
    • SDL_OpenJoystick

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

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

      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

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

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

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

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

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

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

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

      public static boolean SDL_SetJoystickVirtualTouchpad(long joystick, int touchpad, int finger, 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

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

      public static int SDL_GetJoystickProperties(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

      public static @Nullable String SDL_GetJoystickName(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

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

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

      public static boolean SDL_SetJoystickPlayerIndex(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(long joystick, SDL_GUID __result)
      SDL_GUID SDL_GetJoystickGUID(SDL_Joystick * joystick)
    • SDL_GetJoystickVendor

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

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

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

      public static short SDL_GetJoystickFirmwareVersion(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

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

      public static int SDL_GetJoystickType(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, @Nullable ShortBuffer vendor, @Nullable ShortBuffer product, @Nullable ShortBuffer version, @Nullable ShortBuffer crc16)
      void SDL_GetJoystickGUIDInfo(SDL_GUID guid, Uint16 * vendor, Uint16 * product, Uint16 * version, Uint16 * crc16)
    • SDL_JoystickConnected

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

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

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

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

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

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

      public static void SDL_SetJoystickEventsEnabled(boolean enabled)
      void SDL_SetJoystickEventsEnabled(bool enabled)
    • SDL_JoystickEventsEnabled

      public static boolean SDL_JoystickEventsEnabled()
      bool SDL_JoystickEventsEnabled(void)
    • SDL_UpdateJoysticks

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

      public static short SDL_GetJoystickAxis(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

      public static boolean SDL_GetJoystickAxisInitialState(long joystick, int axis, @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

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

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

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

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

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

      public static boolean SDL_SetJoystickLED(long joystick, byte red, byte green, 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

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

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

      public static int SDL_GetJoystickConnectionState(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

      public static int SDL_GetJoystickPowerInfo(long joystick, @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)