mozaSdk
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 
long positiveCoefficient()
Obtain coefficient constant on the positive side of the offset
void setNegativeSaturation(unsigned long newNegativeSaturation)
set maximum force output on the negative side of the offset
void setOffset(long offset)
set offset for the condition
unsigned long positiveSaturation()
Obtain maximum force output on the positive side of the offset
long offset()
Obtain offset for the condition
Effect Abstract Class
Definition: Effect.h:21
Mechanical friction force effect class
Definition: ETFriction.h:16
void setPositiveCoefficient(long newPositiveCoefficient)
set coefficient constant on the positive side of the offset
void setPositiveSaturation(unsigned long newPositiveSaturation)
set maximum force output on the positive side of the offset
DICONDITION m_diPeriodic
Definition: ETFriction.h:162
void setDeadBand(long newDeadBand)
set region around lOffset in which the condition is not active
long negativeCoefficient()
Obtain Coefficient constant on the negative side of the offset
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
unsigned long negativeSaturation()
Obtain maximum force output on the negative side of the offset
Definition: DeviceException.h:7
void setNegativeCoefficient(long newNegativeCoefficient)
set Coefficient constant on the negative side of the offset
long deadBand()
Obtain region around lOffset in which the condition is not active