Package org.lwjgl.sdl
Class SDLHaptic
java.lang.Object
org.lwjgl.sdl.SDLHaptic
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromSDL.getLibrary()
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
nSDL_CreateHapticEffect
(long haptic, long effect) int SDL_CreateHapticEffect(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
static long
nSDL_GetHapticName
(long haptic) char const * SDL_GetHapticName(SDL_Haptic * haptic)
static long
nSDL_GetHapticNameForID
(int instance_id) char const * SDL_GetHapticNameForID(SDL_HapticID instance_id)
static long
nSDL_GetHaptics
(long count) SDL_HapticID * SDL_GetHaptics(int * count)
static boolean
nSDL_HapticEffectSupported
(long haptic, long effect) bool SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
static boolean
nSDL_UpdateHapticEffect
(long haptic, int effect, long data) bool SDL_UpdateHapticEffect(SDL_Haptic * haptic, int effect, SDL_HapticEffect const * data)
static void
SDL_CloseHaptic
(long haptic) void SDL_CloseHaptic(SDL_Haptic * haptic)
static int
SDL_CreateHapticEffect
(long haptic, SDL_HapticEffect effect) int SDL_CreateHapticEffect(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
static void
SDL_DestroyHapticEffect
(long haptic, int effect) void SDL_DestroyHapticEffect(SDL_Haptic * haptic, int effect)
static boolean
SDL_GetHapticEffectStatus
(long haptic, int effect) bool SDL_GetHapticEffectStatus(SDL_Haptic * haptic, int effect)
static int
SDL_GetHapticFeatures
(long haptic) Uint32 SDL_GetHapticFeatures(SDL_Haptic * haptic)
static long
SDL_GetHapticFromID
(int instance_id) SDL_Haptic * SDL_GetHapticFromID(SDL_HapticID instance_id)
static int
SDL_GetHapticID
(long haptic) SDL_HapticID SDL_GetHapticID(SDL_Haptic * haptic)
static @Nullable String
SDL_GetHapticName
(long haptic) char const * SDL_GetHapticName(SDL_Haptic * haptic)
static @Nullable String
SDL_GetHapticNameForID
(int instance_id) char const * SDL_GetHapticNameForID(SDL_HapticID instance_id)
static @Nullable IntBuffer
SDL_HapticID * SDL_GetHaptics(int * count)
static int
SDL_GetMaxHapticEffects
(long haptic) int SDL_GetMaxHapticEffects(SDL_Haptic * haptic)
static int
SDL_GetMaxHapticEffectsPlaying
(long haptic) int SDL_GetMaxHapticEffectsPlaying(SDL_Haptic * haptic)
static int
SDL_GetNumHapticAxes
(long haptic) int SDL_GetNumHapticAxes(SDL_Haptic * haptic)
static boolean
SDL_HapticEffectSupported
(long haptic, SDL_HapticEffect effect) bool SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
static boolean
SDL_HapticRumbleSupported
(long haptic) bool SDL_HapticRumbleSupported(SDL_Haptic * haptic)
static boolean
SDL_InitHapticRumble
(long haptic) bool SDL_InitHapticRumble(SDL_Haptic * haptic)
static boolean
SDL_IsJoystickHaptic
(long joystick) bool SDL_IsJoystickHaptic(SDL_Joystick * joystick)
static boolean
bool SDL_IsMouseHaptic(void)
static long
SDL_OpenHaptic
(int instance_id) SDL_Haptic * SDL_OpenHaptic(SDL_HapticID instance_id)
static long
SDL_OpenHapticFromJoystick
(long joystick) SDL_Haptic * SDL_OpenHapticFromJoystick(SDL_Joystick * joystick)
static long
SDL_Haptic * SDL_OpenHapticFromMouse(void)
static boolean
SDL_PauseHaptic
(long haptic) bool SDL_PauseHaptic(SDL_Haptic * haptic)
static boolean
SDL_PlayHapticRumble
(long haptic, float strength, int length) bool SDL_PlayHapticRumble(SDL_Haptic * haptic, float strength, Uint32 length)
static boolean
SDL_ResumeHaptic
(long haptic) bool SDL_ResumeHaptic(SDL_Haptic * haptic)
static boolean
SDL_RunHapticEffect
(long haptic, int effect, int iterations) bool SDL_RunHapticEffect(SDL_Haptic * haptic, int effect, Uint32 iterations)
static boolean
SDL_SetHapticAutocenter
(long haptic, int autocenter) bool SDL_SetHapticAutocenter(SDL_Haptic * haptic, int autocenter)
static boolean
SDL_SetHapticGain
(long haptic, int gain) bool SDL_SetHapticGain(SDL_Haptic * haptic, int gain)
static boolean
SDL_StopHapticEffect
(long haptic, int effect) bool SDL_StopHapticEffect(SDL_Haptic * haptic, int effect)
static boolean
SDL_StopHapticEffects
(long haptic) bool SDL_StopHapticEffects(SDL_Haptic * haptic)
static boolean
SDL_StopHapticRumble
(long haptic) bool SDL_StopHapticRumble(SDL_Haptic * haptic)
static boolean
SDL_UpdateHapticEffect
(long haptic, int effect, SDL_HapticEffect data) bool SDL_UpdateHapticEffect(SDL_Haptic * haptic, int effect, SDL_HapticEffect const * data)
-
Field Details
-
SDL_HAPTIC_CONSTANT
public static final int SDL_HAPTIC_CONSTANT- See Also:
-
SDL_HAPTIC_SINE
public static final int SDL_HAPTIC_SINE- See Also:
-
SDL_HAPTIC_SQUARE
public static final int SDL_HAPTIC_SQUARE- See Also:
-
SDL_HAPTIC_TRIANGLE
public static final int SDL_HAPTIC_TRIANGLE- See Also:
-
SDL_HAPTIC_SAWTOOTHUP
public static final int SDL_HAPTIC_SAWTOOTHUP- See Also:
-
SDL_HAPTIC_SAWTOOTHDOWN
public static final int SDL_HAPTIC_SAWTOOTHDOWN- See Also:
-
SDL_HAPTIC_RAMP
public static final int SDL_HAPTIC_RAMP- See Also:
-
SDL_HAPTIC_SPRING
public static final int SDL_HAPTIC_SPRING- See Also:
-
SDL_HAPTIC_DAMPER
public static final int SDL_HAPTIC_DAMPER- See Also:
-
SDL_HAPTIC_INERTIA
public static final int SDL_HAPTIC_INERTIA- See Also:
-
SDL_HAPTIC_FRICTION
public static final int SDL_HAPTIC_FRICTION- See Also:
-
SDL_HAPTIC_LEFTRIGHT
public static final int SDL_HAPTIC_LEFTRIGHT- See Also:
-
SDL_HAPTIC_RESERVED1
public static final int SDL_HAPTIC_RESERVED1- See Also:
-
SDL_HAPTIC_RESERVED2
public static final int SDL_HAPTIC_RESERVED2- See Also:
-
SDL_HAPTIC_RESERVED3
public static final int SDL_HAPTIC_RESERVED3- See Also:
-
SDL_HAPTIC_CUSTOM
public static final int SDL_HAPTIC_CUSTOM- See Also:
-
SDL_HAPTIC_GAIN
public static final int SDL_HAPTIC_GAIN- See Also:
-
SDL_HAPTIC_AUTOCENTER
public static final int SDL_HAPTIC_AUTOCENTER- See Also:
-
SDL_HAPTIC_STATUS
public static final int SDL_HAPTIC_STATUS- See Also:
-
SDL_HAPTIC_PAUSE
public static final int SDL_HAPTIC_PAUSE- See Also:
-
SDL_HAPTIC_POLAR
public static final int SDL_HAPTIC_POLAR- See Also:
-
SDL_HAPTIC_CARTESIAN
public static final int SDL_HAPTIC_CARTESIAN- See Also:
-
SDL_HAPTIC_SPHERICAL
public static final int SDL_HAPTIC_SPHERICAL- See Also:
-
SDL_HAPTIC_STEERING_AXIS
public static final int SDL_HAPTIC_STEERING_AXIS- See Also:
-
SDL_HAPTIC_INFINITY
public static final int SDL_HAPTIC_INFINITY- See Also:
-
-
Method Details
-
nSDL_GetHaptics
public static long nSDL_GetHaptics(long count) SDL_HapticID * SDL_GetHaptics(int * count)
-
SDL_GetHaptics
SDL_HapticID * SDL_GetHaptics(int * count)
-
nSDL_GetHapticNameForID
public static long nSDL_GetHapticNameForID(int instance_id) char const * SDL_GetHapticNameForID(SDL_HapticID instance_id)
-
SDL_GetHapticNameForID
char const * SDL_GetHapticNameForID(SDL_HapticID instance_id)
-
SDL_OpenHaptic
public static long SDL_OpenHaptic(int instance_id) SDL_Haptic * SDL_OpenHaptic(SDL_HapticID instance_id)
-
SDL_GetHapticFromID
public static long SDL_GetHapticFromID(int instance_id) SDL_Haptic * SDL_GetHapticFromID(SDL_HapticID instance_id)
-
SDL_GetHapticID
public static int SDL_GetHapticID(long haptic) SDL_HapticID SDL_GetHapticID(SDL_Haptic * haptic)
-
nSDL_GetHapticName
public static long nSDL_GetHapticName(long haptic) char const * SDL_GetHapticName(SDL_Haptic * haptic)
-
SDL_GetHapticName
char const * SDL_GetHapticName(SDL_Haptic * haptic)
-
SDL_IsMouseHaptic
public static boolean SDL_IsMouseHaptic()bool SDL_IsMouseHaptic(void)
-
SDL_OpenHapticFromMouse
public static long SDL_OpenHapticFromMouse()SDL_Haptic * SDL_OpenHapticFromMouse(void)
-
SDL_IsJoystickHaptic
public static boolean SDL_IsJoystickHaptic(long joystick) bool SDL_IsJoystickHaptic(SDL_Joystick * joystick)
-
SDL_OpenHapticFromJoystick
public static long SDL_OpenHapticFromJoystick(long joystick) SDL_Haptic * SDL_OpenHapticFromJoystick(SDL_Joystick * joystick)
-
SDL_CloseHaptic
public static void SDL_CloseHaptic(long haptic) void SDL_CloseHaptic(SDL_Haptic * haptic)
-
SDL_GetMaxHapticEffects
public static int SDL_GetMaxHapticEffects(long haptic) int SDL_GetMaxHapticEffects(SDL_Haptic * haptic)
-
SDL_GetMaxHapticEffectsPlaying
public static int SDL_GetMaxHapticEffectsPlaying(long haptic) int SDL_GetMaxHapticEffectsPlaying(SDL_Haptic * haptic)
-
SDL_GetHapticFeatures
public static int SDL_GetHapticFeatures(long haptic) Uint32 SDL_GetHapticFeatures(SDL_Haptic * haptic)
-
SDL_GetNumHapticAxes
public static int SDL_GetNumHapticAxes(long haptic) int SDL_GetNumHapticAxes(SDL_Haptic * haptic)
-
nSDL_HapticEffectSupported
public static boolean nSDL_HapticEffectSupported(long haptic, long effect) bool SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
-
SDL_HapticEffectSupported
bool SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
-
nSDL_CreateHapticEffect
public static int nSDL_CreateHapticEffect(long haptic, long effect) int SDL_CreateHapticEffect(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
-
SDL_CreateHapticEffect
int SDL_CreateHapticEffect(SDL_Haptic * haptic, SDL_HapticEffect const * effect)
-
nSDL_UpdateHapticEffect
public static boolean nSDL_UpdateHapticEffect(long haptic, int effect, long data) bool SDL_UpdateHapticEffect(SDL_Haptic * haptic, int effect, SDL_HapticEffect const * data)
-
SDL_UpdateHapticEffect
bool SDL_UpdateHapticEffect(SDL_Haptic * haptic, int effect, SDL_HapticEffect const * data)
-
SDL_RunHapticEffect
public static boolean SDL_RunHapticEffect(long haptic, int effect, int iterations) bool SDL_RunHapticEffect(SDL_Haptic * haptic, int effect, Uint32 iterations)
-
SDL_StopHapticEffect
public static boolean SDL_StopHapticEffect(long haptic, int effect) bool SDL_StopHapticEffect(SDL_Haptic * haptic, int effect)
-
SDL_DestroyHapticEffect
public static void SDL_DestroyHapticEffect(long haptic, int effect) void SDL_DestroyHapticEffect(SDL_Haptic * haptic, int effect)
-
SDL_GetHapticEffectStatus
public static boolean SDL_GetHapticEffectStatus(long haptic, int effect) bool SDL_GetHapticEffectStatus(SDL_Haptic * haptic, int effect)
-
SDL_SetHapticGain
public static boolean SDL_SetHapticGain(long haptic, int gain) bool SDL_SetHapticGain(SDL_Haptic * haptic, int gain)
-
SDL_SetHapticAutocenter
public static boolean SDL_SetHapticAutocenter(long haptic, int autocenter) bool SDL_SetHapticAutocenter(SDL_Haptic * haptic, int autocenter)
-
SDL_PauseHaptic
public static boolean SDL_PauseHaptic(long haptic) bool SDL_PauseHaptic(SDL_Haptic * haptic)
-
SDL_ResumeHaptic
public static boolean SDL_ResumeHaptic(long haptic) bool SDL_ResumeHaptic(SDL_Haptic * haptic)
-
SDL_StopHapticEffects
public static boolean SDL_StopHapticEffects(long haptic) bool SDL_StopHapticEffects(SDL_Haptic * haptic)
-
SDL_HapticRumbleSupported
public static boolean SDL_HapticRumbleSupported(long haptic) bool SDL_HapticRumbleSupported(SDL_Haptic * haptic)
-
SDL_InitHapticRumble
public static boolean SDL_InitHapticRumble(long haptic) bool SDL_InitHapticRumble(SDL_Haptic * haptic)
-
SDL_PlayHapticRumble
public static boolean SDL_PlayHapticRumble(long haptic, float strength, int length) bool SDL_PlayHapticRumble(SDL_Haptic * haptic, float strength, Uint32 length)
-
SDL_StopHapticRumble
public static boolean SDL_StopHapticRumble(long haptic) bool SDL_StopHapticRumble(SDL_Haptic * haptic)
-