mozaSdk
src
sdk_api
effects
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
RS21::direct_input::ETSine
Sinusoidal force effect class
Definition:
ETSine.h:15
RS21::direct_input::ETSine::phase
unsigned long phase()
Obtain the current phase of ETSine
RS21::direct_input::ETSine::setMagnitude
void setMagnitude(unsigned long newMagnitude)
set the strength of the current ETSine
RS21::direct_input::Effect
Effect Abstract Class
Definition:
Effect.h:21
RS21::direct_input::ETSine::downloadToDevice
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
RS21::direct_input::ETSine::offset
long offset()
Obtain offset for the condition
RS21::direct_input::ETSine::period
unsigned long period()
Obtain the cycle of the current ETSine
RS21::direct_input::ETSine::setPhase
void setPhase(unsigned long newPhase)
set the current phase of ETSine
RS21::direct_input::ETSine::m_diPeriodic
DIPERIODIC m_diPeriodic
Definition:
ETSine.h:111
RS21::direct_input::ETSine::ETSine
ETSine(Device *device)
RS21::direct_input
Definition:
DeviceException.h:7
RS21::direct_input::ETSine::setPeriod
void setPeriod(unsigned long newPeriod)
set the cycle of the current ETSine
RS21::direct_input::ETSine::setOffset
void setOffset(long newOffset)
set offset for the condition
RS21::direct_input::ETSine::magnitude
unsigned long magnitude()
Obtain the strength of the current ETSine
制作者
1.8.15