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