World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Структура SDL_HapticCondition

A structure containing a template for a Condition effect. Подробнее...

#include <SDL_haptic.h>

+ Граф связей класса SDL_HapticCondition:

Открытые атрибуты

Uint16 type
 
SDL_HapticDirection direction
 
Uint32 length
 
Uint16 delay
 
Uint16 button
 
Uint16 interval
 
Uint16 right_sat [3]
 
Uint16 left_sat [3]
 
Sint16 right_coeff [3]
 
Sint16 left_coeff [3]
 
Uint16 deadband [3]
 
Sint16 center [3]
 

Подробное описание

A structure containing a template for a Condition effect.

The struct handles the following effects:

  • ::SDL_HAPTIC_SPRING: Effect based on axes position.
  • ::SDL_HAPTIC_DAMPER: Effect based on axes velocity.
  • ::SDL_HAPTIC_INERTIA: Effect based on axes acceleration.
  • ::SDL_HAPTIC_FRICTION: Effect based on axes movement.

Direction is handled by condition internals instead of a direction member. The condition effect specific members have three parameters. The first refers to the X axis, the second refers to the Y axis and the third refers to the Z axis. The right terms refer to the positive side of the axis and the left terms refer to the negative side of the axis. Please refer to the SDL_HapticDirection diagram for which side is positive and which is negative.

См. также
SDL_HapticDirection
SDL_HAPTIC_SPRING
SDL_HAPTIC_DAMPER
SDL_HAPTIC_INERTIA
SDL_HAPTIC_FRICTION
SDL_HapticEffect

См. определение в файле SDL_haptic.h строка 602

Данные класса

◆ type

Uint16 SDL_HapticCondition::type

::SDL_HAPTIC_SPRING, ::SDL_HAPTIC_DAMPER, ::SDL_HAPTIC_INERTIA or ::SDL_HAPTIC_FRICTION

См. определение в файле SDL_haptic.h строка 605

◆ direction

SDL_HapticDirection SDL_HapticCondition::direction

Direction of the effect - Not used ATM.

См. определение в файле SDL_haptic.h строка 607

◆ length

Uint32 SDL_HapticCondition::length

Duration of the effect.

См. определение в файле SDL_haptic.h строка 610

◆ delay

Uint16 SDL_HapticCondition::delay

Delay before starting the effect.

См. определение в файле SDL_haptic.h строка 611

◆ button

Uint16 SDL_HapticCondition::button

Button that triggers the effect.

См. определение в файле SDL_haptic.h строка 614

◆ interval

Uint16 SDL_HapticCondition::interval

How soon it can be triggered again after button.

См. определение в файле SDL_haptic.h строка 615

◆ right_sat

Uint16 SDL_HapticCondition::right_sat[3]

Level when joystick is to the positive side; max 0xFFFF.

См. определение в файле SDL_haptic.h строка 618

◆ left_sat

Uint16 SDL_HapticCondition::left_sat[3]

Level when joystick is to the negative side; max 0xFFFF.

См. определение в файле SDL_haptic.h строка 619

◆ right_coeff

Sint16 SDL_HapticCondition::right_coeff[3]

How fast to increase the force towards the positive side.

См. определение в файле SDL_haptic.h строка 620

◆ left_coeff

Sint16 SDL_HapticCondition::left_coeff[3]

How fast to increase the force towards the negative side.

См. определение в файле SDL_haptic.h строка 621

◆ deadband

Uint16 SDL_HapticCondition::deadband[3]

Size of the dead zone; max 0xFFFF: whole axis-range when 0-centered.

См. определение в файле SDL_haptic.h строка 622

◆ center

Sint16 SDL_HapticCondition::center[3]

Position of the dead zone.

См. определение в файле SDL_haptic.h строка 623


Объявления и описания членов структуры находятся в файле: