mozaSdk
ETConstantForce.h
1 #pragma once
2 #include <dinput.h>
3 #include "Effect.h"
4 namespace RS21::direct_input {
14 class ETConstantForce: public Effect
15 {
16 public:
17  ETConstantForce(Device* device);
18 
28  long magnitude();
29 
39  void setMagnitude(long newMagnitude);
40 
41 protected:
51  void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override;
52  DICONSTANTFORCE m_diPeriodic;
53 
54 
55 };
56 }//RS21::directInput
Constant force effect class 1.Specialization attribute: magnitude
Definition: ETConstantForce.h:14
void setMagnitude(long newMagnitude)
set the strength of the current ETConstantForce
DICONSTANTFORCE m_diPeriodic
Definition: ETConstantForce.h:52
Effect Abstract Class
Definition: Effect.h:21
Definition: DeviceException.h:7
void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
Device creation force (initialization)
long magnitude()
Obtain the strength of the current ETConstantForce