mozaSdk
src
sdk_api
effects
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
RS21::direct_input::ETConstantForce
The ETConstantForce class 常量力效果类
Definition:
ETConstantForce.h:14
RS21::direct_input::ETConstantForce::setMagnitude
void setMagnitude(long newMagnitude)
设置当前ETConstantForce的强度
RS21::direct_input::ETConstantForce::m_diPeriodic
DICONSTANTFORCE m_diPeriodic
Definition:
ETConstantForce.h:52
RS21::direct_input::Effect
The Effect class 效果抽象类
Definition:
Effect.h:21
RS21::direct_input::ETConstantForce::ETConstantForce
ETConstantForce(Device *device)
RS21::direct_input
Definition:
DeviceException.h:7
RS21::direct_input::ETConstantForce::downloadToDevice
void downloadToDevice(LPDIRECTINPUTDEVICE8 device) override
设备创建力(初始化)
RS21::direct_input::ETConstantForce::magnitude
long magnitude()
获取当前ETConstantForce的强度
制作者
1.8.15