World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
107 #ifndef SDL_haptic_h_
108 #define SDL_haptic_h_
163 #define SDL_HAPTIC_CONSTANT (1u<<0)
172 #define SDL_HAPTIC_SINE (1u<<1)
183 #define SDL_HAPTIC_LEFTRIGHT (1u<<2)
195 #define SDL_HAPTIC_TRIANGLE (1u<<3)
204 #define SDL_HAPTIC_SAWTOOTHUP (1u<<4)
213 #define SDL_HAPTIC_SAWTOOTHDOWN (1u<<5)
222 #define SDL_HAPTIC_RAMP (1u<<6)
232 #define SDL_HAPTIC_SPRING (1u<<7)
242 #define SDL_HAPTIC_DAMPER (1u<<8)
252 #define SDL_HAPTIC_INERTIA (1u<<9)
262 #define SDL_HAPTIC_FRICTION (1u<<10)
269 #define SDL_HAPTIC_CUSTOM (1u<<11)
282 #define SDL_HAPTIC_GAIN (1u<<12)
291 #define SDL_HAPTIC_AUTOCENTER (1u<<13)
300 #define SDL_HAPTIC_STATUS (1u<<14)
310 #define SDL_HAPTIC_PAUSE (1u<<15)
323 #define SDL_HAPTIC_POLAR 0
330 #define SDL_HAPTIC_CARTESIAN 1
337 #define SDL_HAPTIC_SPHERICAL 2
352 #define SDL_HAPTIC_INFINITY 4294967295U
832 extern DECLSPEC
const char *SDLCALL
SDL_HapticName(
int device_index);
DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromJoystick(SDL_Joystick *joystick)
Opens a haptic device for use from a joystick device.
struct SDL_HapticLeftRight SDL_HapticLeftRight
A structure containing a template for a Left/Right effect.
DECLSPEC int SDLCALL SDL_HapticRumbleInit(SDL_Haptic *haptic)
Initializes the haptic device for simple rumble playback.
DECLSPEC int SDLCALL SDL_MouseIsHaptic(void)
Gets whether or not the current mouse has haptic capabilities.
SDL_HapticDirection direction
A structure containing a template for a Condition effect.
SDL_HapticConstant constant
DECLSPEC int SDLCALL SDL_HapticNumEffects(SDL_Haptic *haptic)
Returns the number of effects a haptic device can store.
DECLSPEC int SDLCALL SDL_HapticUpdateEffect(SDL_Haptic *haptic, int effect, SDL_HapticEffect *data)
Updates the properties of an effect.
struct _SDL_Haptic SDL_Haptic
The haptic structure used to identify an SDL haptic.
DECLSPEC int SDLCALL SDL_HapticNewEffect(SDL_Haptic *haptic, SDL_HapticEffect *effect)
Creates a new haptic effect on the device.
SDL_HapticDirection direction
struct _SDL_Joystick SDL_Joystick
struct SDL_HapticCustom SDL_HapticCustom
A structure containing a template for the ::SDL_HAPTIC_CUSTOM effect.
DECLSPEC int SDLCALL SDL_HapticSetAutocenter(SDL_Haptic *haptic, int autocenter)
Sets the global autocenter of the device.
A structure containing a template for the ::SDL_HAPTIC_CUSTOM effect.
SDL_HapticLeftRight leftright
GLuint GLsizei GLsizei * length
DECLSPEC int SDLCALL SDL_HapticEffectSupported(SDL_Haptic *haptic, SDL_HapticEffect *effect)
Checks to see if effect is supported by haptic.
DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpenFromMouse(void)
Tries to open a haptic device from the current mouse.
DECLSPEC void SDLCALL SDL_HapticClose(SDL_Haptic *haptic)
Closes a haptic device previously opened with SDL_HapticOpen().
struct SDL_HapticRamp SDL_HapticRamp
A structure containing a template for a Ramp effect.
SDL_HapticPeriodic periodic
DECLSPEC int SDLCALL SDL_HapticSetGain(SDL_Haptic *haptic, int gain)
Sets the global gain of the device.
DECLSPEC int SDLCALL SDL_HapticNumAxes(SDL_Haptic *haptic)
Gets the number of haptic axes the device has.
The generic template for any haptic effect.
DECLSPEC int SDLCALL SDL_NumHaptics(void)
Count the number of haptic devices attached to the system.
A structure containing a template for a Left/Right effect.
DECLSPEC unsigned int SDLCALL SDL_HapticQuery(SDL_Haptic *haptic)
Gets the haptic device's supported features in bitwise manner.
DECLSPEC int SDLCALL SDL_HapticStopEffect(SDL_Haptic *haptic, int effect)
Stops the haptic effect on its associated haptic device.
struct SDL_HapticPeriodic SDL_HapticPeriodic
A structure containing a template for a Periodic effect.
DECLSPEC int SDLCALL SDL_HapticRumblePlay(SDL_Haptic *haptic, float strength, Uint32 length)
Runs simple rumble on a haptic device.
A structure containing a template for a Periodic effect.
struct SDL_HapticDirection SDL_HapticDirection
Structure that represents a haptic direction.
DECLSPEC SDL_Haptic *SDLCALL SDL_HapticOpen(int device_index)
Opens a haptic device for use.
const DECLSPEC char *SDLCALL SDL_HapticName(int device_index)
Get the implementation dependent name of a haptic device.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_HapticDirection direction
DECLSPEC int SDLCALL SDL_HapticOpened(int device_index)
Checks if the haptic device at index has been opened.
A structure containing a template for a Ramp effect.
SDL_HapticCondition condition
SDL_HapticDirection direction
DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic *haptic)
Stops the simple rumble on a haptic device.
DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic *haptic)
Checks to see if rumble is supported on a haptic device.
DECLSPEC void SDLCALL SDL_HapticDestroyEffect(SDL_Haptic *haptic, int effect)
Destroys a haptic effect on the device.
DECLSPEC int SDLCALL SDL_HapticStopAll(SDL_Haptic *haptic)
Stops all the currently playing effects on a haptic device.
DECLSPEC int SDLCALL SDL_HapticRunEffect(SDL_Haptic *haptic, int effect, Uint32 iterations)
Runs the haptic effect on its associated haptic device.
DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick *joystick)
Checks to see if a joystick has haptic features.
struct SDL_HapticConstant SDL_HapticConstant
A structure containing a template for a Constant effect.
union SDL_HapticEffect SDL_HapticEffect
The generic template for any haptic effect.
SDL_HapticDirection direction
struct SDL_HapticCondition SDL_HapticCondition
A structure containing a template for a Condition effect.
DECLSPEC int SDLCALL SDL_HapticIndex(SDL_Haptic *haptic)
Gets the index of a haptic device.
DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic)
Returns the number of effects a haptic device can play at the same time.
DECLSPEC int SDLCALL SDL_HapticGetEffectStatus(SDL_Haptic *haptic, int effect)
Gets the status of the current effect on the haptic device.
DECLSPEC int SDLCALL SDL_HapticUnpause(SDL_Haptic *haptic)
Unpauses a haptic device.
DECLSPEC int SDLCALL SDL_HapticPause(SDL_Haptic *haptic)
Pauses a haptic device.
A structure containing a template for a Constant effect.
Structure that represents a haptic direction.