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
The ETSine class 正弦力效果类
Definition:
ETSine.h:15
RS21::direct_input::ETSine::phase
unsigned long phase()
phase 获取当前ETSine相位
RS21::direct_input::ETSine::setMagnitude
void setMagnitude(unsigned long newMagnitude)
setMagnitude 设置当前ETSine的强度
RS21::direct_input::Effect
The Effect class 效果抽象类
Definition:
Effect.h:21
RS21::direct_input::ETSine::downloadToDevice
virtual void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
RS21::direct_input::ETSine::offset
long offset()
获取条件的偏移量
RS21::direct_input::ETSine::period
unsigned long period()
获取当前ETSine的周期
RS21::direct_input::ETSine::setPhase
void setPhase(unsigned long newPhase)
设置当前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)
设置当前ETSine的周期
RS21::direct_input::ETSine::setOffset
void setOffset(long newOffset)
设置条件的偏移量
RS21::direct_input::ETSine::magnitude
unsigned long magnitude()
magnitude 获取当前ETSine的强度
制作者
1.8.15