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

The ETSpring class 回中力效果类 更多...

#include <ETSpring.h>

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

Public 成员函数

 ETSpring (Device *device)
 
long offset ()
 获取条件的偏移量 更多...
 
long positiveCoefficient ()
 获取偏移正侧的系数常数 更多...
 
long negativeCoefficient ()
 获取偏移负侧的系数常数 更多...
 
unsigned long positiveSaturation ()
 获得偏移正侧的最大力输出 更多...
 
unsigned long negativeSaturation ()
 获取偏移负侧的最大力输出 更多...
 
long deadBand ()
 获取lOffset周围条件未激活的区域 更多...
 
void setOffset (long offset)
 设置条件的偏移量 更多...
 
void setPositiveCoefficient (long newPositiveCoefficient)
 设置偏移正侧的系数常数 更多...
 
void setNegativeCoefficient (long newNegativeCoefficient)
 设置偏移负侧的系数常数 更多...
 
void setPositiveSaturation (unsigned long newPositiveSaturation)
 设置偏移正侧的最大力输出 更多...
 
void setNegativeSaturation (unsigned long newNegativeSaturation)
 设置偏移负侧的最大力输出 更多...
 
void setDeadBand (long newDeadBand)
 设置lOffset周围条件未激活的区域 更多...
 
- Public 成员函数 继承自 RS21::direct_input::Effect
void start ()
 力效果启动 更多...
 
void stop ()
 stop 停止力效果 更多...
 
void setAttackLevel (const unsigned long newAttackLevel=0)
 设置发力级别 更多...
 
unsigned long attackLevel () const
 获取发力级别 更多...
 
unsigned long attackTime () const
 获取发力时间 更多...
 
void setAttackTime (const unsigned long newAttackTime=500)
 设置发力时间 更多...
 
unsigned long fadeLevel () const
 fadeLevel 获取衰减级别 更多...
 
void setFadeLevel (const unsigned long newFadeLevel=0)
 设置衰减级别 更多...
 
unsigned long fadeTime () const
 fadeTime 获取衰减时间,单位:ms 更多...
 
void setFadeTime (const unsigned long newFadeTime=1000)
 setFadeTime 设置衰减时间 更多...
 
unsigned long duration () const
 duration 获取效果持续时间 更多...
 
void setDuration (const unsigned long newDuration=2000)
 setDuration 设置效果持续时间 更多...
 
unsigned long samplePeriod () const
 获取采样周期 更多...
 
void setSamplePeriod (const unsigned long newSamplePeriod=0)
 setSamplePeriod 设置采样周期 更多...
 
unsigned long gain () const
 获取增益 更多...
 
void setGain (const unsigned long newGain=DI_FFNOMINALMAX)
 设置增益值 更多...
 
unsigned long triggerButton () const
 获取出发效果按钮 更多...
 
void setTriggerButton (const unsigned long newButtonIndex=DIEB_NOTRIGGER)
 设置触发效果按钮 更多...
 
unsigned long triggerRepeatInterval () const
 获取触发效果重复间隔 更多...
 
void setTriggerRepeatInterval (const unsigned long newRepeatInterval=0)
 设置触发效果间隔 更多...
 
unsigned long rgdAxesCount ()
 效果相关轴数 更多...
 
unsigned long * rgdAxes ()
 获取相关轴数组 更多...
 
void setRgdAxes (unsigned long *axes, unsigned long size)
 设置相关轴 更多...
 
long xDirection ()
 获取effect在x轴向的角度 更多...
 
void setXDirection (long newDegree=1)
 设置effect在x轴向的角度 更多...
 
std::string effectName () const
 获取当前effect的名称 更多...
 
void setEffectName (const std::string &newEffectName)
 设置effect别名 更多...
 
int index () const
 获取当前effect的index 更多...
 
void setIndex (unsigned int newIndex)
 设置当前effect的index 更多...
 

Protected 成员函数

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

Protected 属性

DICONDITION 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
 

详细描述

The ETSpring class 回中力效果类

构造及析构函数说明

◆ ETSpring()

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

成员函数说明

◆ deadBand()

long RS21::direct_input::ETSpring::deadBand ( )

获取lOffset周围条件未激活的区域

返回
lOffset周围条件未激活的区域,范围从0到10000。换句话说,在lOffset减去lDeadBand和lOffset加上lDeadBnd之间,条件不活动。

◆ downloadToDevice()

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

◆ negativeCoefficient()

long RS21::direct_input::ETSpring::negativeCoefficient ( )

获取偏移负侧的系数常数

返回
偏移负侧的系数常数,范围从-10000到10000。 如果设备不支持单独的正系数和负系数,则忽略lNegativeCoefficient的值,并将lPositiveCoefficiency的值用作正系数和负值

◆ negativeSaturation()

unsigned long RS21::direct_input::ETSpring::negativeSaturation ( )

获取偏移负侧的最大力输出

返回
偏移负侧的最大力输出,范围从0到10000。 如果设备不支持力饱和,则忽略此成员的值。 如果设备不支持单独的正饱和和负饱和,则忽略dwNegativeSaturation的值,并使用dwPositiveSaturation值作为正饱和和负饱和。

◆ offset()

long RS21::direct_input::ETSpring::offset ( )

获取条件的偏移量

返回
条件的偏移量,范围从-10000到10000

◆ positiveCoefficient()

long RS21::direct_input::ETSpring::positiveCoefficient ( )

获取偏移正侧的系数常数

返回
偏移正侧的系数常数,范围从-10000到10000

◆ positiveSaturation()

unsigned long RS21::direct_input::ETSpring::positiveSaturation ( )

获得偏移正侧的最大力输出

返回
偏移正侧的最大力输出,范围从0到10000。如果设备不支持力饱和,则忽略此成员的值。

◆ setDeadBand()

void RS21::direct_input::ETSpring::setDeadBand ( long  newDeadBand)

设置lOffset周围条件未激活的区域

参数
newDeadBandlOffset周围条件未激活的区域,范围从0到10000。换句话说,在lOffset减去lDeadBand和lOffset加上lDeadBnd之间,条件不活动。

◆ setNegativeCoefficient()

void RS21::direct_input::ETSpring::setNegativeCoefficient ( long  newNegativeCoefficient)

设置偏移负侧的系数常数

参数
newNegativeCoefficient偏移负侧的系数常数,范围从-10000到10000。 如果设备不支持单独的正系数和负系数,则忽略lNegativeCoefficient的值,并将lPositiveCoefficiency的值用作正系数和负值

◆ setNegativeSaturation()

void RS21::direct_input::ETSpring::setNegativeSaturation ( unsigned long  newNegativeSaturation)

设置偏移负侧的最大力输出

参数
newNegativeSaturation偏移负侧的最大力输出,范围从0到10000。 如果设备不支持力饱和,则忽略此成员的值。 如果设备不支持单独的正饱和和负饱和,则忽略dwNegativeSaturation的值,并使用dwPositiveSaturation值作为正饱和和负饱和。

◆ setOffset()

void RS21::direct_input::ETSpring::setOffset ( long  offset)

设置条件的偏移量

参数
offset条件的偏移量,范围从-10000到10000

◆ setPositiveCoefficient()

void RS21::direct_input::ETSpring::setPositiveCoefficient ( long  newPositiveCoefficient)

设置偏移正侧的系数常数

参数
newPositiveCoefficient偏移正侧的系数常数,范围从-10000到10000

◆ setPositiveSaturation()

void RS21::direct_input::ETSpring::setPositiveSaturation ( unsigned long  newPositiveSaturation)

设置偏移正侧的最大力输出

参数
newPositiveSaturation偏移正侧的最大力输出,范围从0到10000。如果设备不支持力饱和,则忽略此成员的值。

类成员变量说明

◆ m_diPeriodic

DICONDITION RS21::direct_input::ETSpring::m_diPeriodic
protected