mozaSdk
src
sdk_api
effects
ETDamper.h
1
2
#pragma once
3
#include <dinput.h>
4
#include "Effect.h"
5
#include <iostream>
6
namespace
RS21::direct_input
{
7
15
class
ETDamper
:
public
Effect
16
{
17
public
:
18
ETDamper
(Device* device);
28
long
offset
();
38
long
positiveCoefficient
();
51
long
negativeCoefficient
();
62
unsigned
long
positiveSaturation
();
76
unsigned
long
negativeSaturation
();
87
long
deadBand
();
88
98
void
setOffset
(
long
offset
);
108
void
setPositiveCoefficient
(
long
newPositiveCoefficient);
121
void
setNegativeCoefficient
(
long
newNegativeCoefficient);
132
void
setPositiveSaturation
(
unsigned
long
newPositiveSaturation);
146
void
setNegativeSaturation
(
unsigned
long
newNegativeSaturation);
157
void
setDeadBand
(
long
newDeadBand);
158
protected
:
159
// /**
160
// * @if english
161
// * @brief Device creation force (initialization)
162
// * @param device win Device interface instance
163
// * @else
164
// * @brief 设备创建力(初始化)
165
// * @param device win设备接口实例
166
// * @endif
167
// */
168
virtual
void
downloadToDevice
(LPDIRECTINPUTDEVICE8 device)
override
;
169
DICONDITION
m_diPeriodic
;
170
};
171
172
}
//RS21::directInput
RS21::direct_input::ETDamper::negativeCoefficient
long negativeCoefficient()
获取偏移负侧的系数常数
RS21::direct_input::ETDamper::setNegativeSaturation
void setNegativeSaturation(unsigned long newNegativeSaturation)
设置偏移负侧的最大力输出
RS21::direct_input::ETDamper::setPositiveSaturation
void setPositiveSaturation(unsigned long newPositiveSaturation)
设置偏移正侧的最大力输出
RS21::direct_input::ETDamper::ETDamper
ETDamper(Device *device)
RS21::direct_input::ETDamper::positiveSaturation
unsigned long positiveSaturation()
获得偏移正侧的最大力输出
RS21::direct_input::ETDamper::positiveCoefficient
long positiveCoefficient()
获取偏移正侧的系数常数
RS21::direct_input::ETDamper::setOffset
void setOffset(long offset)
设置条件的偏移量
RS21::direct_input::ETDamper::deadBand
long deadBand()
获取lOffset周围条件未激活的区域
RS21::direct_input::Effect
The Effect class 效果抽象类
Definition:
Effect.h:21
RS21::direct_input::ETDamper
The ETDamper class 阻尼力效果类
Definition:
ETDamper.h:15
RS21::direct_input::ETDamper::setPositiveCoefficient
void setPositiveCoefficient(long newPositiveCoefficient)
设置偏移正侧的系数常数
RS21::direct_input::ETDamper::setDeadBand
void setDeadBand(long newDeadBand)
设置lOffset周围条件未激活的区域
RS21::direct_input::ETDamper::setNegativeCoefficient
void setNegativeCoefficient(long newNegativeCoefficient)
设置偏移负侧的系数常数
RS21::direct_input::ETDamper::negativeSaturation
unsigned long negativeSaturation()
获取偏移负侧的最大力输出
RS21::direct_input
Definition:
DeviceException.h:7
RS21::direct_input::ETDamper::offset
long offset()
获取条件的偏移量
RS21::direct_input::ETDamper::m_diPeriodic
DICONDITION m_diPeriodic
Definition:
ETDamper.h:169
RS21::direct_input::ETDamper::downloadToDevice
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
设备创建力(初始化)
制作者
1.8.15