#include <OISEffect.h>
Public Types | |
| enum | EForce { UnknownForce = 0, ConstantForce, RampForce, PeriodicForce, ConditionalForce, CustomForce } |
| Type of force. More... | |
| enum | EType { Unknown = 0, Constant, Ramp, Square, Triangle, Sine, SawToothUp, SawToothDown, Friction, Damper, Inertia, Spring, Custom } |
| Type of effect. More... | |
| enum | EDirection { NorthWest, North, NorthEast, East, SouthEast, South, SouthWest, West } |
| Direction of the Force. More... | |
Public Member Functions | |
| Effect (EForce ef, EType et) | |
| virtual | ~Effect () |
| ForceEffect * | getForceEffect () const |
| void | setNumAxes (short nAxes) |
| short | getNumAxes () const |
Public Attributes | |
| const EForce | force |
| const EType | type |
| EDirection | direction |
| short | trigger_button |
| unsigned int | trigger_interval |
| unsigned int | replay_length |
| unsigned int | replay_delay |
| int | _handle |
Static Public Attributes | |
| static const unsigned int | OIS_INFINITE = 0xFFFFFFFF |
Protected Attributes | |
| ForceEffect * | effect |
| short | axes |
Private Member Functions | |
| Effect () | |
In anycase, this is the main class you will be using. There is *absolutely* no need to instance any of the supporting ForceEffect classes yourself.
Definition at line 47 of file OISEffect.h.
| enum OIS::Effect::EForce |
| enum OIS::Effect::EType |
Type of effect.
| Unknown | |
| Constant | |
| Ramp | |
| Square | |
| Triangle | |
| Sine | |
| SawToothUp | |
| SawToothDown | |
| Friction | |
| Damper | |
| Inertia | |
| Spring | |
| Custom |
Definition at line 66 of file OISEffect.h.
| Effect::Effect | ( | ) | [private] |
hidden so this class cannot be instanced with default constructor
Definition at line 33 of file OISEffect.cpp.
This constructor allows you to set the force type and effect.
Definition at line 42 of file OISEffect.cpp.
References ConditionalForce, ConstantForce, effect, PeriodicForce, and RampForce.
| Effect::~Effect | ( | ) | [virtual] |
| ForceEffect * Effect::getForceEffect | ( | ) | const |
Definition at line 72 of file OISEffect.cpp.
References E_NotSupported, effect, and OIS_EXCEPT.
Referenced by OIS::Win32ForceFeedback::_updateConditionalEffect(), OIS::Win32ForceFeedback::_updateConstantEffect(), OIS::Win32ForceFeedback::_updatePeriodicEffect(), and OIS::Win32ForceFeedback::_updateRampEffect().
| void Effect::setNumAxes | ( | short | nAxes | ) |
Definition at line 82 of file OISEffect.cpp.
| short Effect::getNumAxes | ( | ) | const |
Definition at line 90 of file OISEffect.cpp.
References axes.
Referenced by OIS::Win32ForceFeedback::_setCommonProperties().
| const EForce OIS::Effect::force |
| const EType OIS::Effect::type |
Definition at line 104 of file OISEffect.h.
Referenced by OIS::Win32ForceFeedback::_updateConditionalEffect(), and OIS::Win32ForceFeedback::_updatePeriodicEffect().
const unsigned int OIS::Effect::OIS_INFINITE = 0xFFFFFFFF [static] |
Definition at line 107 of file OISEffect.h.
Definition at line 113 of file OISEffect.h.
Definition at line 116 of file OISEffect.h.
| unsigned int OIS::Effect::trigger_interval |
Definition at line 119 of file OISEffect.h.
| unsigned int OIS::Effect::replay_length |
Definition at line 122 of file OISEffect.h.
Referenced by OIS::Win32ForceFeedback::_setCommonProperties().
| unsigned int OIS::Effect::replay_delay |
Definition at line 125 of file OISEffect.h.
Referenced by OIS::Win32ForceFeedback::_setCommonProperties().
int OIS::Effect::_handle [mutable] |
set internally.. do not change or you will not be able to upload/stop this effect any more. It will become lost. It is mutable so even with const reference it can/will be changed by this lib
Definition at line 150 of file OISEffect.h.
Referenced by OIS::Win32ForceFeedback::_upload(), OIS::Win32ForceFeedback::remove(), and setNumAxes().
ForceEffect* OIS::Effect::effect [protected] |
Definition at line 152 of file OISEffect.h.
Referenced by Effect(), getForceEffect(), and ~Effect().
short OIS::Effect::axes [protected] |
1.5.4