mozaSdk
ETSine.h
1 
2 #pragma once
3 #include "Effect.h"
4 #include <dinput.h>
5 #include <iostream>
6 namespace RS21::direct_input{
7 
15 class ETSine : public Effect
16 {
17 public:
18  ETSine(Device* device);
19 
29  unsigned long magnitude();
30 
40  void setMagnitude(unsigned long newMagnitude);
41 
51  long offset();
52 
62  void setOffset(long newOffset);
63 
73  unsigned long phase();
74 
84  void setPhase(unsigned long newPhase);
85 
95  unsigned long period();
96 
106  void setPeriod(unsigned long newPeriod);
107 
108 
109 protected:
110  virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override;
111  DIPERIODIC m_diPeriodic;
112 };
113 }//RS21::directInput
Sinusoidal force effect class
Definition: ETSine.h:15
unsigned long phase()
Obtain the current phase of ETSine
void setMagnitude(unsigned long newMagnitude)
set the strength of the current ETSine
Effect Abstract Class
Definition: Effect.h:21
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
long offset()
Obtain offset for the condition
unsigned long period()
Obtain the cycle of the current ETSine
void setPhase(unsigned long newPhase)
set the current phase of ETSine
DIPERIODIC m_diPeriodic
Definition: ETSine.h:111
Definition: DeviceException.h:7
void setPeriod(unsigned long newPeriod)
set the cycle of the current ETSine
void setOffset(long newOffset)
set offset for the condition
unsigned long magnitude()
Obtain the strength of the current ETSine