mozaSdk
|
#include <ETSine.h>
Public 成员函数 | |
ETSine (Device *device) | |
unsigned long | magnitude () |
magnitude 获取当前ETSine的强度 更多... | |
void | setMagnitude (unsigned long newMagnitude) |
setMagnitude 设置当前ETSine的强度 更多... | |
long | offset () |
获取条件的偏移量 更多... | |
void | setOffset (long newOffset) |
设置条件的偏移量 更多... | |
unsigned long | phase () |
phase 获取当前ETSine相位 更多... | |
void | setPhase (unsigned long newPhase) |
设置当前ETSine的相位 更多... | |
unsigned long | period () |
获取当前ETSine的周期 更多... | |
void | setPeriod (unsigned long newPeriod) |
设置当前ETSine的周期 更多... | |
![]() | |
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 |
![]() | |
Effect (Device *device) | |
~Effect () | |
std::map< std::string, std::string > | allGeneralEffectInfo () |
Protected 属性 | |
DIPERIODIC | m_diPeriodic |
![]() | |
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 |
额外继承的成员函数 | |
![]() | |
bool | m_isRunning = false |
The ETSine class 正弦力效果类
RS21::direct_input::ETSine::ETSine | ( | Device * | device | ) |
|
overrideprotectedvirtual |
unsigned long RS21::direct_input::ETSine::magnitude | ( | ) |
magnitude 获取当前ETSine的强度
long RS21::direct_input::ETSine::offset | ( | ) |
获取条件的偏移量
unsigned long RS21::direct_input::ETSine::period | ( | ) |
获取当前ETSine的周期
unsigned long RS21::direct_input::ETSine::phase | ( | ) |
phase 获取当前ETSine相位
void RS21::direct_input::ETSine::setMagnitude | ( | unsigned long | newMagnitude | ) |
setMagnitude 设置当前ETSine的强度
newMagnitude | 设置的ETSine的强度值 |
void RS21::direct_input::ETSine::setOffset | ( | long | newOffset | ) |
设置条件的偏移量
offset | 条件的偏移量,范围从-10000到10000 |
void RS21::direct_input::ETSine::setPeriod | ( | unsigned long | newPeriod | ) |
设置当前ETSine的周期
newPeriod | 设置的周期 |
void RS21::direct_input::ETSine::setPhase | ( | unsigned long | newPhase | ) |
设置当前ETSine的相位
newPhase | 设置的ETSine的相位 |
|
protected |