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