mozaSdk
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
RS21::direct_input::ETSine类 参考

Sinusoidal force effect class 更多...

#include <ETSine.h>

类 RS21::direct_input::ETSine 继承关系图:
RS21::direct_input::Effect

Public 成员函数

 ETSine (Device *device)
 
unsigned long magnitude ()
 Obtain the strength of the current ETSine 更多...
 
void setMagnitude (unsigned long newMagnitude)
 set the strength of the current ETSine 更多...
 
long offset ()
 Obtain offset for the condition 更多...
 
void setOffset (long newOffset)
 set offset for the condition 更多...
 
unsigned long phase ()
 Obtain the current phase of ETSine 更多...
 
void setPhase (unsigned long newPhase)
 set the current phase of ETSine 更多...
 
unsigned long period ()
 Obtain the cycle of the current ETSine 更多...
 
void setPeriod (unsigned long newPeriod)
 set the cycle of the current ETSine 更多...
 
- Public 成员函数 继承自 RS21::direct_input::Effect
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 更多...
 

Protected 成员函数

virtual void downloadToDevice (LPDIRECTINPUTDEVICE8 device) override
 
- Protected 成员函数 继承自 RS21::direct_input::Effect
 Effect (Device *device)
 
 ~Effect ()
 
std::map< std::string, std::string > allGeneralEffectInfo ()
 

Protected 属性

DIPERIODIC m_diPeriodic
 
- Protected 属性 继承自 RS21::direct_input::Effect
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
 

额外继承的成员函数

- Public 属性 继承自 RS21::direct_input::Effect
bool m_isRunning = false
 

详细描述

Sinusoidal force effect class

构造及析构函数说明

◆ ETSine()

RS21::direct_input::ETSine::ETSine ( Device *  device)

成员函数说明

◆ downloadToDevice()

virtual void RS21::direct_input::ETSine::downloadToDevice ( LPDIRECTINPUTDEVICE8  device)
overrideprotectedvirtual

◆ magnitude()

unsigned long RS21::direct_input::ETSine::magnitude ( )

Obtain the strength of the current ETSine

返回
The strength of the current ETSine

◆ offset()

long RS21::direct_input::ETSine::offset ( )

Obtain offset for the condition

返回
Offset for the condition, in the range from - 10,000 through 10,000.

◆ period()

unsigned long RS21::direct_input::ETSine::period ( )

Obtain the cycle of the current ETSine

返回
cycle of the current ETSine

◆ phase()

unsigned long RS21::direct_input::ETSine::phase ( )

Obtain the current phase of ETSine

返回
Current phase of ETSine

◆ setMagnitude()

void RS21::direct_input::ETSine::setMagnitude ( unsigned long  newMagnitude)

set the strength of the current ETSine

参数
newMagnitudeThe strength of the current ETSine

◆ setOffset()

void RS21::direct_input::ETSine::setOffset ( long  newOffset)

set offset for the condition

参数
offsetOffset for the condition, in the range from - 10,000 through 10,000.

◆ setPeriod()

void RS21::direct_input::ETSine::setPeriod ( unsigned long  newPeriod)

set the cycle of the current ETSine

参数
newPhasecycle of the current ETSine

◆ setPhase()

void RS21::direct_input::ETSine::setPhase ( unsigned long  newPhase)

set the current phase of ETSine

参数
newPhasecurrent phase of ETSine

类成员变量说明

◆ m_diPeriodic

DIPERIODIC RS21::direct_input::ETSine::m_diPeriodic
protected