抽象指针设备类
更多...
#include <dinputdevicepointer.h>
|
| DInputDevicePointer (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) |
|
| DInputDevicePointer (DInputDevicePointerPrivate &dd, const DeviceInfo &info, bool enabled=true, QObject *parent=nullptr) |
|
| DInputDeviceGeneric (const DeviceInfo &info=DeviceInfoInitializer, bool enabled=true, QObject *parent=nullptr) |
|
| DInputDeviceGeneric (DInputDeviceGenericPrivate &dd, const DeviceInfo &info, bool enabled, QObject *parent) |
|
void | setId (quint32 id) |
| 设置设备的id 更多...
|
|
void | setName (const QString &name) |
| 设置设备名 更多...
|
|
void | setType (DeviceType type) |
| 设置设备类型 更多...
|
|
void | setEnabled (bool enabled) |
| 设置设备是否启用 更多...
|
|
void | setDeviceInfo (const DeviceInfo &info) |
| 设置设备信息 更多...
|
|
◆ accelerationProfile()
◆ accelerationProfileChanged
◆ accelerationSpeed()
pure virtual double DInputDevicePointer::accelerationSpeed |
( |
| ) |
const |
|
pure virtual |
◆ accelerationSpeedChanged
void DInputDevicePointer::accelerationSpeedChanged |
( |
double |
speed | ) |
|
|
signal |
◆ leftHanded()
pure virtual bool DInputDevicePointer::leftHanded |
( |
| ) |
const |
|
pure virtual |
◆ leftHandedChanged
void DInputDevicePointer::leftHandedChanged |
( |
bool |
leftHanded | ) |
|
|
signal |
◆ scrollMethod()
pure virtual ScrollMethod DInputDevicePointer::scrollMethod |
( |
| ) |
const |
|
pure virtual |
◆ scrollMethodChanged
void DInputDevicePointer::scrollMethodChanged |
( |
ScrollMethod |
method | ) |
|
|
signal |
◆ setAccelerationProfile()
pure virtual void DInputDevicePointer::setAccelerationProfile |
( |
AccelerationProfile |
accelerationProfile | ) |
|
|
pure virtual |
◆ setAccelerationSpeed()
pure virtual void DInputDevicePointer::setAccelerationSpeed |
( |
double |
accelerationSpeed | ) |
|
|
pure virtual |
◆ setLeftHanded()
pure virtual void DInputDevicePointer::setLeftHanded |
( |
bool |
leftHanded | ) |
|
|
pure virtual |
◆ setScrollMethod()
pure virtual void DInputDevicePointer::setScrollMethod |
( |
ScrollMethod |
scrollMethod | ) |
|
|
pure virtual |
◆ accelerationProfile
Dtk::Device::DInputDevicePointer::accelerationProfile |
|
readwrite |
当前的加速方式
加速模式一共有两种, 对于不同的指针类型设备, 支持的加速方式不一样.
◆ accelerationSpeed
Dtk::Device::DInputDevicePointer::accelerationSpeed |
|
readwrite |
当前加速度
对于无加速的指针类型设备, 加速度总为0.
◆ leftHanded
Dtk::Device::DInputDevicePointer::leftHanded |
|
readwrite |
是否开启左手模式
true表示开启左手模式, false表示关闭左手模式.
◆ scrollMethod
Dtk::Device::DInputDevicePointer::scrollMethod |
|
readwrite |
当前的滚动模式
滚动模式一共有三种, 对于不同的指针类型设备, 支持的滚动模式不一样.
该类的文档由以下文件生成: