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()
Obtain Coefficient constant on the negative side of the offset
RS21::direct_input::ETDamper::setNegativeSaturation
void setNegativeSaturation(unsigned long newNegativeSaturation)
set maximum force output on the negative side of the offset
RS21::direct_input::ETDamper::setPositiveSaturation
void setPositiveSaturation(unsigned long newPositiveSaturation)
set maximum force output on the positive side of the offset
RS21::direct_input::ETDamper::ETDamper
ETDamper(Device *device)
RS21::direct_input::ETDamper::positiveSaturation
unsigned long positiveSaturation()
Obtain maximum force output on the positive side of the offset
RS21::direct_input::ETDamper::positiveCoefficient
long positiveCoefficient()
Obtain coefficient constant on the positive side of the offset
RS21::direct_input::ETDamper::setOffset
void setOffset(long offset)
set offset for the condition
RS21::direct_input::ETDamper::deadBand
long deadBand()
Obtain region around lOffset in which the condition is not active
RS21::direct_input::Effect
Effect Abstract Class
Definition:
Effect.h:21
RS21::direct_input::ETDamper
Damping force effect class
Definition:
ETDamper.h:15
RS21::direct_input::ETDamper::setPositiveCoefficient
void setPositiveCoefficient(long newPositiveCoefficient)
set coefficient constant on the positive side of the offset
RS21::direct_input::ETDamper::setDeadBand
void setDeadBand(long newDeadBand)
set region around lOffset in which the condition is not active
RS21::direct_input::ETDamper::setNegativeCoefficient
void setNegativeCoefficient(long newNegativeCoefficient)
set Coefficient constant on the negative side of the offset
RS21::direct_input::ETDamper::negativeSaturation
unsigned long negativeSaturation()
Obtain maximum force output on the negative side of the offset
RS21::direct_input
Definition:
DeviceException.h:7
RS21::direct_input::ETDamper::offset
long offset()
Obtain offset for the condition
RS21::direct_input::ETDamper::m_diPeriodic
DICONDITION m_diPeriodic
Definition:
ETDamper.h:169
RS21::direct_input::ETDamper::downloadToDevice
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
Device creation force (initialization)
制作者
1.8.15