mozaSdk
|
#include <Effect.h>
Public 成员函数 | |
void | start () |
start Force effect 更多... | |
void | stop () |
stop Force effect 更多... | |
void | setAttackLevel (const unsigned long newAttackLevel=0) |
Set the power level 更多... | |
unsigned long | attackLevel () const |
Obtain Power Level 更多... | |
unsigned long | attackTime () const |
Obtain Power time 更多... | |
void | setAttackTime (const unsigned long newAttackTime=500) |
set Power time 更多... | |
unsigned long | fadeLevel () const |
Obtain attenuation level 更多... | |
void | setFadeLevel (const unsigned long newFadeLevel=0) |
Set attenuation level 更多... | |
unsigned long | fadeTime () const |
Obtain attenuation time 更多... | |
void | setFadeTime (const unsigned long newFadeTime=1000) |
Set attenuation time 更多... | |
unsigned long | duration () const |
Obtain attenuation duration 更多... | |
void | setDuration (const unsigned long newDuration=2000) |
set attenuation duration 更多... | |
unsigned long | samplePeriod () const |
Obtain sampling period 更多... | |
void | setSamplePeriod (const unsigned long newSamplePeriod=0) |
set sampling period 更多... | |
unsigned long | gain () const |
Obtain Gain 更多... | |
void | setGain (const unsigned long newGain=DI_FFNOMINALMAX) |
set Gain 更多... | |
unsigned long | triggerButton () const |
Obtain departure effect button 更多... | |
void | setTriggerButton (const unsigned long newButtonIndex=DIEB_NOTRIGGER) |
set departure effect button 更多... | |
unsigned long | triggerRepeatInterval () const |
Obtain trigger effect repetition interval 更多... | |
void | setTriggerRepeatInterval (const unsigned long newRepeatInterval=0) |
Set trigger effect repetition interval 更多... | |
unsigned long | rgdAxesCount () |
Number of effect related axes 更多... | |
unsigned long * | rgdAxes () |
Obtain relevant axis array 更多... | |
void | setRgdAxes (unsigned long *axes, unsigned long size) |
Set related axes 更多... | |
long | xDirection () |
Obtain the angle of the effect in the x-axis 更多... | |
void | setXDirection (long newDegree=1) |
Set the angle of the effect in the x-axis 更多... | |
std::string | effectName () const |
Obtain the name of the current effect 更多... | |
void | setEffectName (const std::string &newEffectName) |
set the name of the current effect 更多... | |
int | index () const |
Obtain the index of the current effect 更多... | |
void | setIndex (unsigned int newIndex) |
set the index of the current effect 更多... | |
Public 属性 | |
bool | m_isRunning = false |
Protected 成员函数 | |
Effect (Device *device) | |
~Effect () | |
virtual void | downloadToDevice (LPDIRECTINPUTDEVICE8 device)=0 |
std::map< std::string, std::string > | allGeneralEffectInfo () |
Protected 属性 | |
uint16_t | m_effectId |
std::string | m_effectName |
LPDIRECTINPUTEFFECT | m_effect = NULL |
DIEFFECT | m_diEffect |
DIENVELOPE | m_diEnvelope |
LONG * | m_lDirection = nullptr |
DWORD * | m_dwAxes = nullptr |
Device * | m_device = nullptr |
unsigned int | m_index = 0 |
Effect Abstract Class
|
protected |
|
protected |
|
protected |
unsigned long RS21::direct_input::Effect::attackLevel | ( | ) | const |
Obtain Power Level
unsigned long RS21::direct_input::Effect::attackTime | ( | ) | const |
Obtain Power time
|
protectedpure virtual |
unsigned long RS21::direct_input::Effect::duration | ( | ) | const |
Obtain attenuation duration
std::string RS21::direct_input::Effect::effectName | ( | ) | const |
Obtain the name of the current effect
unsigned long RS21::direct_input::Effect::fadeLevel | ( | ) | const |
Obtain attenuation level
unsigned long RS21::direct_input::Effect::fadeTime | ( | ) | const |
Obtain attenuation time
unsigned long RS21::direct_input::Effect::gain | ( | ) | const |
Obtain Gain
int RS21::direct_input::Effect::index | ( | ) | const |
Obtain the index of the current effect
unsigned long* RS21::direct_input::Effect::rgdAxes | ( | ) |
Obtain relevant axis array
unsigned long RS21::direct_input::Effect::rgdAxesCount | ( | ) |
Number of effect related axes
unsigned long RS21::direct_input::Effect::samplePeriod | ( | ) | const |
Obtain sampling period
void RS21::direct_input::Effect::setAttackLevel | ( | const unsigned long | newAttackLevel = 0 | ) |
Set the power level
newAttackLevel | Power level |
void RS21::direct_input::Effect::setAttackTime | ( | const unsigned long | newAttackTime = 500 | ) |
set Power time
newAttackTime | Power time,Unit: ms |
void RS21::direct_input::Effect::setDuration | ( | const unsigned long | newDuration = 2000 | ) |
set attenuation duration
newDuration | attenuation duration,Unit: ms |
void RS21::direct_input::Effect::setEffectName | ( | const std::string & | newEffectName | ) |
set the name of the current effect
newEffectName | The name of the effect |
void RS21::direct_input::Effect::setFadeLevel | ( | const unsigned long | newFadeLevel = 0 | ) |
Set attenuation level
newFadeLevel | attenuation level |
void RS21::direct_input::Effect::setFadeTime | ( | const unsigned long | newFadeTime = 1000 | ) |
Set attenuation time
newFadeLevel | attenuation time,Unit: ms |
void RS21::direct_input::Effect::setGain | ( | const unsigned long | newGain = DI_FFNOMINALMAX | ) |
set Gain
void RS21::direct_input::Effect::setIndex | ( | unsigned int | newIndex | ) |
set the index of the current effect
The | index of the current effect,index >= 0 |
void RS21::direct_input::Effect::setRgdAxes | ( | unsigned long * | axes, |
unsigned long | size | ||
) |
Set related axes
axes | Related axis array pointer |
size | Length of related axis array |
void RS21::direct_input::Effect::setSamplePeriod | ( | const unsigned long | newSamplePeriod = 0 | ) |
set sampling period
newSamplePeriod | sampling period,Unit: ms |
void RS21::direct_input::Effect::setTriggerButton | ( | const unsigned long | newButtonIndex = DIEB_NOTRIGGER | ) |
set departure effect button
newButtonIndex | departure effect button |
void RS21::direct_input::Effect::setTriggerRepeatInterval | ( | const unsigned long | newRepeatInterval = 0 | ) |
Set trigger effect repetition interval
newRepeatInterval | Trigger effect interval |
void RS21::direct_input::Effect::setXDirection | ( | long | newDegree = 1 | ) |
Set the angle of the effect in the x-axis
newDegree | The angle of the effect on the x-axis |
void RS21::direct_input::Effect::start | ( | ) |
start Force effect
void RS21::direct_input::Effect::stop | ( | ) |
stop Force effect
unsigned long RS21::direct_input::Effect::triggerButton | ( | ) | const |
Obtain departure effect button
unsigned long RS21::direct_input::Effect::triggerRepeatInterval | ( | ) | const |
Obtain trigger effect repetition interval
long RS21::direct_input::Effect::xDirection | ( | ) |
Obtain the angle of the effect in the x-axis
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bool RS21::direct_input::Effect::m_isRunning = false |
|
protected |