mozaSdk
src
sdk_api
effects
ETFriction.h
1
2
#pragma once
3
#include <dinput.h>
4
#include "Effect.h"
5
6
7
namespace
RS21::direct_input
{
8
16
class
ETFriction
:
public
Effect
17
{
18
public
:
19
ETFriction
(Device* device);
20
//查看参数
30
long
offset
();
40
long
positiveCoefficient
();
53
long
negativeCoefficient
();
64
unsigned
long
positiveSaturation
();
78
unsigned
long
negativeSaturation
();
89
long
deadBand
();
90
100
void
setOffset
(
long
offset
);
110
void
setPositiveCoefficient
(
long
newPositiveCoefficient);
123
void
setNegativeCoefficient
(
long
newNegativeCoefficient);
134
void
setPositiveSaturation
(
unsigned
long
newPositiveSaturation);
148
void
setNegativeSaturation
(
unsigned
long
newNegativeSaturation);
159
void
setDeadBand
(
long
newDeadBand);
160
protected
:
161
virtual
void
downloadToDevice
(LPDIRECTINPUTDEVICE8 device)
override
;
162
DICONDITION
m_diPeriodic
;
163
};
164
}
//rs21::direct_input
165
RS21::direct_input::ETFriction::positiveCoefficient
long positiveCoefficient()
Obtain coefficient constant on the positive side of the offset
RS21::direct_input::ETFriction::setNegativeSaturation
void setNegativeSaturation(unsigned long newNegativeSaturation)
set maximum force output on the negative side of the offset
RS21::direct_input::ETFriction::setOffset
void setOffset(long offset)
set offset for the condition
RS21::direct_input::ETFriction::positiveSaturation
unsigned long positiveSaturation()
Obtain maximum force output on the positive side of the offset
RS21::direct_input::ETFriction::offset
long offset()
Obtain offset for the condition
RS21::direct_input::Effect
Effect Abstract Class
Definition:
Effect.h:21
RS21::direct_input::ETFriction::ETFriction
ETFriction(Device *device)
RS21::direct_input::ETFriction
Mechanical friction force effect class
Definition:
ETFriction.h:16
RS21::direct_input::ETFriction::setPositiveCoefficient
void setPositiveCoefficient(long newPositiveCoefficient)
set coefficient constant on the positive side of the offset
RS21::direct_input::ETFriction::setPositiveSaturation
void setPositiveSaturation(unsigned long newPositiveSaturation)
set maximum force output on the positive side of the offset
RS21::direct_input::ETFriction::m_diPeriodic
DICONDITION m_diPeriodic
Definition:
ETFriction.h:162
RS21::direct_input::ETFriction::setDeadBand
void setDeadBand(long newDeadBand)
set region around lOffset in which the condition is not active
RS21::direct_input::ETFriction::negativeCoefficient
long negativeCoefficient()
Obtain Coefficient constant on the negative side of the offset
RS21::direct_input::ETFriction::downloadToDevice
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
RS21::direct_input::ETFriction::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::ETFriction::setNegativeCoefficient
void setNegativeCoefficient(long newNegativeCoefficient)
set Coefficient constant on the negative side of the offset
RS21::direct_input::ETFriction::deadBand
long deadBand()
Obtain region around lOffset in which the condition is not active
制作者
1.8.15