mozaSdk
src
sdk_api
effects
ETInertia.h
1
2
#pragma once
3
#include "Effect.h"
4
5
6
namespace
RS21::direct_input
{
7
15
class
ETInertia
:
public
Effect
16
{
17
public
:
18
ETInertia
(Device* device);
19
//查看参数
29
long
offset
();
39
long
positiveCoefficient
();
52
long
negativeCoefficient
();
63
unsigned
long
positiveSaturation
();
77
unsigned
long
negativeSaturation
();
88
long
deadBand
();
89
99
void
setOffset
(
long
offset
);
109
void
setPositiveCoefficient
(
long
newPositiveCoefficient);
122
void
setNegativeCoefficient
(
long
newNegativeCoefficient);
133
void
setPositiveSaturation
(
unsigned
long
newPositiveSaturation);
147
void
setNegativeSaturation
(
unsigned
long
newNegativeSaturation);
158
void
setDeadBand
(
long
newDeadBand);
159
protected
:
160
virtual
void
downloadToDevice
(LPDIRECTINPUTDEVICE8 device)
override
;
161
DICONDITION
m_diPeriodic
;
162
};
163
}
//rs21::direct_input
164
RS21::direct_input::ETInertia
The ETDamper class 惯量效果类
Definition:
ETInertia.h:15
RS21::direct_input::ETInertia::offset
long offset()
获取条件的偏移量
RS21::direct_input::ETInertia::negativeCoefficient
long negativeCoefficient()
获取偏移负侧的系数常数
RS21::direct_input::ETInertia::positiveSaturation
unsigned long positiveSaturation()
获得偏移正侧的最大力输出
RS21::direct_input::ETInertia::setOffset
void setOffset(long offset)
设置条件的偏移量
RS21::direct_input::Effect
The Effect class 效果抽象类
Definition:
Effect.h:21
RS21::direct_input::ETInertia::setNegativeSaturation
void setNegativeSaturation(unsigned long newNegativeSaturation)
设置偏移负侧的最大力输出
RS21::direct_input::ETInertia::positiveCoefficient
long positiveCoefficient()
获取偏移正侧的系数常数
RS21::direct_input::ETInertia::downloadToDevice
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
RS21::direct_input::ETInertia::negativeSaturation
unsigned long negativeSaturation()
获取偏移负侧的最大力输出
RS21::direct_input::ETInertia::m_diPeriodic
DICONDITION m_diPeriodic
Definition:
ETInertia.h:161
RS21::direct_input::ETInertia::ETInertia
ETInertia(Device *device)
RS21::direct_input::ETInertia::deadBand
long deadBand()
获取lOffset周围条件未激活的区域
RS21::direct_input::ETInertia::setPositiveSaturation
void setPositiveSaturation(unsigned long newPositiveSaturation)
设置偏移正侧的最大力输出
RS21::direct_input::ETInertia::setDeadBand
void setDeadBand(long newDeadBand)
设置lOffset周围条件未激活的区域
RS21::direct_input
Definition:
DeviceException.h:7
RS21::direct_input::ETInertia::setNegativeCoefficient
void setNegativeCoefficient(long newNegativeCoefficient)
设置偏移负侧的系数常数
RS21::direct_input::ETInertia::setPositiveCoefficient
void setPositiveCoefficient(long newPositiveCoefficient)
设置偏移正侧的系数常数
制作者
1.8.15