public final class SDL
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SDL.Event |
Modifier and Type | Field and Description |
---|---|
static int |
SDL_CONTROLLER_AXIS_INVALID
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_LEFTX
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_LEFTY
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_MAX
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_RIGHTX
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_RIGHTY
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_TRIGGERLEFT
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_AXIS_TRIGGERRIGHT
The list of axes available from a controller
|
static int |
SDL_CONTROLLER_BINDTYPE_AXIS |
static int |
SDL_CONTROLLER_BINDTYPE_BUTTON |
static int |
SDL_CONTROLLER_BINDTYPE_HAT |
static int |
SDL_CONTROLLER_BINDTYPE_NONE |
static int |
SDL_CONTROLLER_BUTTON_A
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_B
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_BACK
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_DPAD_DOWN
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_DPAD_LEFT
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_DPAD_RIGHT
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_DPAD_UP
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_GUIDE
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_INVALID
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_LEFTSHOULDER
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_LEFTSTICK
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_MAX
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_RIGHTSTICK
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_START
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_X
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_BUTTON_Y
The list of buttons available from a controller
|
static int |
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO |
static int |
SDL_CONTROLLER_TYPE_PS3 |
static int |
SDL_CONTROLLER_TYPE_PS4 |
static int |
SDL_CONTROLLER_TYPE_UNKNOWN |
static int |
SDL_CONTROLLER_TYPE_VIRTUAL |
static int |
SDL_CONTROLLER_TYPE_XBOX360 |
static int |
SDL_CONTROLLER_TYPE_XBOXONE |
static int |
SDL_HAT_CENTERED |
static int |
SDL_HAT_DOWN |
static int |
SDL_HAT_LEFT |
static int |
SDL_HAT_LEFTDOWN |
static int |
SDL_HAT_LEFTUP |
static int |
SDL_HAT_RIGHT |
static int |
SDL_HAT_RIGHTDOWN |
static int |
SDL_HAT_RIGHTUP |
static int |
SDL_HAT_UP |
static int |
SDL_INIT_AUDIO |
static int |
SDL_INIT_EVENTS |
static int |
SDL_INIT_EVERYTHING |
static int |
SDL_INIT_GAMECONTROLLER |
static int |
SDL_INIT_HAPTIC |
static int |
SDL_INIT_JOYSTICK |
static int |
SDL_INIT_NOPARACHUTE |
static int |
SDL_INIT_SENSOR |
static int |
SDL_INIT_TIMER |
static int |
SDL_INIT_VIDEO |
static int |
SDL_JOYSTICK_POWER_EMPTY |
static int |
SDL_JOYSTICK_POWER_FULL |
static int |
SDL_JOYSTICK_POWER_LOW |
static int |
SDL_JOYSTICK_POWER_MAX |
static int |
SDL_JOYSTICK_POWER_MEDIUM |
static int |
SDL_JOYSTICK_POWER_UNKNOWN |
static int |
SDL_JOYSTICK_POWER_WIRED |
Constructor and Description |
---|
SDL() |
Modifier and Type | Method and Description |
---|---|
static int |
SDL_GameControllerAddMapping(java.lang.String mappingString) |
static int |
SDL_GameControllerAddMappingsFromFile(java.lang.String path) |
static void |
SDL_GameControllerClose(long ptr) |
static int |
SDL_GameControllerEventState(int state) |
static long |
SDL_GameControllerFromInstanceID(int joyid) |
static long |
SDL_GameControllerFromPlayerIndex(int i) |
static boolean |
SDL_GameControllerGetAttached(long ptr) |
static int |
SDL_GameControllerGetAxis(long ptr,
int axis) |
static int |
SDL_GameControllerGetButton(long ptr,
int button) |
static long |
SDL_GameControllerGetJoystick(long ptr) |
static int |
SDL_GameControllerGetPlayerIndex(long ptr) |
static java.lang.String |
SDL_GameControllerGetStringForAxis(int axis) |
static java.lang.String |
SDL_GameControllerGetStringForButton(int button) |
static int |
SDL_GameControllerGetType(long ptr) |
static java.lang.String |
SDL_GameControllerName(long ptr) |
static java.lang.String |
SDL_GameControllerNameForIndex(int i) |
static long |
SDL_GameControllerOpen(int i) |
static void |
SDL_GameControllerSetPlayerIndex(long ptr,
int player_index) |
static void |
SDL_GameControllerUpdate() |
static java.lang.String |
SDL_GetError() |
static int |
SDL_Init(int flags) |
static int |
SDL_InitSubSystem(int flags) |
static boolean |
SDL_IsGameController(int joystick_index) |
static int |
SDL_JOYSTICK_AXIS_MAX() |
static int |
SDL_JOYSTICK_AXIS_MIN() |
static void |
SDL_JoystickClose(long ptr) |
static int |
SDL_JoystickCurrentPowerLevel(long ptr) |
static int |
SDL_JoystickEventState(int state) |
static long |
SDL_JoystickFromInstanceID(int joyid) |
static boolean |
SDL_JoystickGetAttached(long ptr) |
static int |
SDL_JoystickGetAxis(long ptr,
int axis) |
static int |
SDL_JoystickGetButton(long ptr,
int button) |
static int |
SDL_JoystickGetDeviceInstanceID(int device) |
static int |
SDL_JoystickGetDeviceProductVersion(int device_id) |
static int |
SDL_JoystickGetHat(long ptr,
int hat) |
static java.lang.String |
SDL_JoystickGUIDString(long ptr) |
static int |
SDL_JoystickInstanceID(long ptr) |
static java.lang.String |
SDL_JoystickName(long ptr) |
static java.lang.String |
SDL_JoystickNameForIndex(int i) |
static int |
SDL_JoystickNumAxes(long ptr) |
static int |
SDL_JoystickNumBalls(long ptr) |
static int |
SDL_JoystickNumButtons(long ptr) |
static int |
SDL_JoystickNumHats(long ptr) |
static long |
SDL_JoystickOpen(int i) |
static boolean |
SDL_JoystickRumble(long ptr,
int leftMagnitude,
int rightMagnitude,
int duration_ms) |
static void |
SDL_JoystickUpdate() |
static int |
SDL_NumJoysticks() |
static boolean |
SDL_PollEvent(SDL.Event jobj) |
static void |
SDL_PumpEvents() |
static void |
SDL_Quit()
This function cleans up all initialized subsystems.
|
static void |
SDL_QuitSubSystem(int flags) |
static boolean |
SDL_SetHint(java.lang.String name,
java.lang.String value) |
static int |
SDL_WasInit(int flags) |
public static final int SDL_CONTROLLER_BINDTYPE_NONE
public static final int SDL_CONTROLLER_BINDTYPE_BUTTON
public static final int SDL_CONTROLLER_BINDTYPE_AXIS
public static final int SDL_CONTROLLER_BINDTYPE_HAT
public static final int SDL_CONTROLLER_AXIS_INVALID
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_LEFTX
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_LEFTY
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_RIGHTX
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_RIGHTY
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_TRIGGERLEFT
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_TRIGGERRIGHT
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_AXIS_MAX
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN to SDL_JOYSTICK_AXIS_MAX, and are centered within ~8000 of zero, though advanced UI will allow users to set or autodetect the dead zone, which varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX.
public static final int SDL_CONTROLLER_BUTTON_INVALID
public static final int SDL_CONTROLLER_BUTTON_A
public static final int SDL_CONTROLLER_BUTTON_B
public static final int SDL_CONTROLLER_BUTTON_X
public static final int SDL_CONTROLLER_BUTTON_Y
public static final int SDL_CONTROLLER_BUTTON_BACK
public static final int SDL_CONTROLLER_BUTTON_GUIDE
public static final int SDL_CONTROLLER_BUTTON_START
public static final int SDL_CONTROLLER_BUTTON_LEFTSTICK
public static final int SDL_CONTROLLER_BUTTON_RIGHTSTICK
public static final int SDL_CONTROLLER_BUTTON_LEFTSHOULDER
public static final int SDL_CONTROLLER_BUTTON_RIGHTSHOULDER
public static final int SDL_CONTROLLER_BUTTON_DPAD_UP
public static final int SDL_CONTROLLER_BUTTON_DPAD_DOWN
public static final int SDL_CONTROLLER_BUTTON_DPAD_LEFT
public static final int SDL_CONTROLLER_BUTTON_DPAD_RIGHT
public static final int SDL_CONTROLLER_BUTTON_MAX
public static final int SDL_HAT_CENTERED
public static final int SDL_HAT_UP
public static final int SDL_HAT_RIGHT
public static final int SDL_HAT_DOWN
public static final int SDL_HAT_LEFT
public static final int SDL_HAT_RIGHTUP
public static final int SDL_HAT_RIGHTDOWN
public static final int SDL_HAT_LEFTUP
public static final int SDL_HAT_LEFTDOWN
public static final int SDL_JOYSTICK_POWER_UNKNOWN
public static final int SDL_JOYSTICK_POWER_EMPTY
public static final int SDL_JOYSTICK_POWER_LOW
public static final int SDL_JOYSTICK_POWER_MEDIUM
public static final int SDL_JOYSTICK_POWER_FULL
public static final int SDL_JOYSTICK_POWER_WIRED
public static final int SDL_JOYSTICK_POWER_MAX
public static final int SDL_CONTROLLER_TYPE_UNKNOWN
public static final int SDL_CONTROLLER_TYPE_XBOX360
public static final int SDL_CONTROLLER_TYPE_XBOXONE
public static final int SDL_CONTROLLER_TYPE_PS3
public static final int SDL_CONTROLLER_TYPE_PS4
public static final int SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO
public static final int SDL_CONTROLLER_TYPE_VIRTUAL
public static int SDL_INIT_TIMER
public static int SDL_INIT_AUDIO
public static int SDL_INIT_VIDEO
public static int SDL_INIT_JOYSTICK
public static int SDL_INIT_HAPTIC
public static int SDL_INIT_GAMECONTROLLER
public static int SDL_INIT_EVENTS
public static int SDL_INIT_SENSOR
public static int SDL_INIT_NOPARACHUTE
public static int SDL_INIT_EVERYTHING
public static void SDL_JoystickClose(long ptr)
public static int SDL_JoystickCurrentPowerLevel(long ptr)
public static int SDL_JoystickEventState(int state)
public static long SDL_JoystickFromInstanceID(int joyid)
public static boolean SDL_JoystickGetAttached(long ptr)
public static int SDL_JoystickGetAxis(long ptr, int axis)
public static int SDL_JoystickGetButton(long ptr, int button)
public static int SDL_JoystickGetHat(long ptr, int hat)
public static int SDL_JoystickInstanceID(long ptr)
public static java.lang.String SDL_JoystickName(long ptr)
public static java.lang.String SDL_JoystickNameForIndex(int i)
public static int SDL_JoystickNumAxes(long ptr)
public static int SDL_JoystickNumBalls(long ptr)
public static int SDL_JoystickNumButtons(long ptr)
public static int SDL_JoystickNumHats(long ptr)
public static long SDL_JoystickOpen(int i)
public static void SDL_JoystickUpdate()
public static int SDL_NumJoysticks()
public static int SDL_JoystickGetDeviceInstanceID(int device)
public static int SDL_JoystickGetDeviceProductVersion(int device_id)
public static boolean SDL_JoystickRumble(long ptr, int leftMagnitude, int rightMagnitude, int duration_ms)
public static java.lang.String SDL_GameControllerGetStringForAxis(int axis)
public static java.lang.String SDL_GameControllerGetStringForButton(int button)
public static int SDL_GameControllerAddMapping(java.lang.String mappingString)
public static int SDL_GameControllerAddMappingsFromFile(java.lang.String path)
public static void SDL_GameControllerClose(long ptr)
public static int SDL_GameControllerEventState(int state)
public static long SDL_GameControllerFromInstanceID(int joyid)
public static boolean SDL_GameControllerGetAttached(long ptr)
public static int SDL_GameControllerGetAxis(long ptr, int axis)
public static java.lang.String SDL_JoystickGUIDString(long ptr)
public static int SDL_GameControllerGetButton(long ptr, int button)
public static long SDL_GameControllerGetJoystick(long ptr)
public static java.lang.String SDL_GameControllerName(long ptr)
public static java.lang.String SDL_GameControllerNameForIndex(int i)
public static long SDL_GameControllerFromPlayerIndex(int i)
public static int SDL_GameControllerGetType(long ptr)
public static int SDL_GameControllerGetPlayerIndex(long ptr)
public static void SDL_GameControllerSetPlayerIndex(long ptr, int player_index)
public static long SDL_GameControllerOpen(int i)
public static void SDL_GameControllerUpdate()
public static boolean SDL_IsGameController(int joystick_index)
public static int SDL_Init(int flags)
public static int SDL_InitSubSystem(int flags)
public static void SDL_QuitSubSystem(int flags)
public static int SDL_WasInit(int flags)
public static void SDL_Quit()
public static boolean SDL_SetHint(java.lang.String name, java.lang.String value)
public static java.lang.String SDL_GetError()
public static void SDL_PumpEvents()
public static int SDL_JOYSTICK_AXIS_MIN()
public static int SDL_JOYSTICK_AXIS_MAX()
public static boolean SDL_PollEvent(SDL.Event jobj)