mozaSdk
|
Centripetal force effect class 更多...
#include <ETSpring.h>
Public 成员函数 | |
ETSpring (Device *device) | |
long | offset () |
Obtain offset for the condition 更多... | |
long | positiveCoefficient () |
Obtain coefficient constant on the positive side of the offset 更多... | |
long | negativeCoefficient () |
Obtain Coefficient constant on the negative side of the offset 更多... | |
unsigned long | positiveSaturation () |
Obtain maximum force output on the positive side of the offset 更多... | |
unsigned long | negativeSaturation () |
Obtain maximum force output on the negative side of the offset 更多... | |
long | deadBand () |
Obtain region around lOffset in which the condition is not active 更多... | |
void | setOffset (long offset) |
set offset for the condition 更多... | |
void | setPositiveCoefficient (long newPositiveCoefficient) |
set coefficient constant on the positive side of the offset 更多... | |
void | setNegativeCoefficient (long newNegativeCoefficient) |
set Coefficient constant on the negative side of the offset 更多... | |
void | setPositiveSaturation (unsigned long newPositiveSaturation) |
set maximum force output on the positive side of the offset 更多... | |
void | setNegativeSaturation (unsigned long newNegativeSaturation) |
set maximum force output on the negative side of the offset 更多... | |
void | setDeadBand (long newDeadBand) |
set region around lOffset in which the condition is not active 更多... | |
![]() | |
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 |
![]() | |
Effect (Device *device) | |
~Effect () | |
std::map< std::string, std::string > | allGeneralEffectInfo () |
Protected 属性 | |
DICONDITION | 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 |
Centripetal force effect class
RS21::direct_input::ETSpring::ETSpring | ( | Device * | device | ) |
long RS21::direct_input::ETSpring::deadBand | ( | ) |
Obtain region around lOffset in which the condition is not active
|
overrideprotectedvirtual |
long RS21::direct_input::ETSpring::negativeCoefficient | ( | ) |
Obtain Coefficient constant on the negative side of the offset
unsigned long RS21::direct_input::ETSpring::negativeSaturation | ( | ) |
Obtain maximum force output on the negative side of the offset
long RS21::direct_input::ETSpring::offset | ( | ) |
Obtain offset for the condition
long RS21::direct_input::ETSpring::positiveCoefficient | ( | ) |
Obtain coefficient constant on the positive side of the offset
unsigned long RS21::direct_input::ETSpring::positiveSaturation | ( | ) |
Obtain maximum force output on the positive side of the offset
void RS21::direct_input::ETSpring::setDeadBand | ( | long | newDeadBand | ) |
set region around lOffset in which the condition is not active
newDeadBand | Region around lOffset in which the condition is not active, in the range from 0 through 10,000. In other words, the condition is not active between lOffset minus lDeadBand and lOffset plus lDeadBand. |
void RS21::direct_input::ETSpring::setNegativeCoefficient | ( | long | newNegativeCoefficient | ) |
set Coefficient constant on the negative side of the offset
newNegativeCoefficient | Coefficient constant on the negative side of the offset, in the range from - 10,000 through 10,000 If the device does not support separate positive and negative coefficients, the value of lNegativeCoefficient is ignored, and the value of lPositiveCoefficient is used as both the positive and negative coefficients |
void RS21::direct_input::ETSpring::setNegativeSaturation | ( | unsigned long | newNegativeSaturation | ) |
set maximum force output on the negative side of the offset
newNegativeSaturation | Maximum force output on the negative side of the offset, in the range from 0 through 10,000. If the device does not support force saturation, the value of this member is ignored. If the device does not support separate positive and negative saturation, the value of dwNegativeSaturation is ignored, and the value of dwPositiveSaturation is used as both the positive and negative saturation. |
void RS21::direct_input::ETSpring::setOffset | ( | long | offset | ) |
set offset for the condition
offset | Offset for the condition, in the range from - 10,000 through 10,000. |
void RS21::direct_input::ETSpring::setPositiveCoefficient | ( | long | newPositiveCoefficient | ) |
set coefficient constant on the positive side of the offset
newPositiveCoefficient | coefficient constant on the positive side of the offset, in the range from - 10,000 through 10,000. |
void RS21::direct_input::ETSpring::setPositiveSaturation | ( | unsigned long | newPositiveSaturation | ) |
set maximum force output on the positive side of the offset
newPositiveSaturation | Maximum force output on the positive side of the offset, in the range from 0 through 10,000. If the device does not support force saturation, the value of this member is ignored. |
|
protected |