Qt3DInput::QAbstractPhysicalDeviceProxy acts as a proxy for an actual Qt3DInput::QQAbstractPhysicalDevice device. 更多...
头: | #include <QAbstractPhysicalDeviceProxy> |
qmake: | QT += 3dinput |
Since: | Qt 5.8 |
继承: | Qt3DInput::QAbstractPhysicalDevice |
该类在 Qt 5.8 引入。
QString | deviceName () const |
Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus | status () const |
void | statusChanged (QAbstractPhysicalDeviceProxy::DeviceStatus status ) |
Qt3DInput::QAbstractPhysicalDeviceProxy can be used to facilitate exposing a physical device to users. It alleviates the need to introspect the axis and buttons based on their names.
It is typcally used through subclassing allowing to set the device name and defining enums for the various axis and buttons of your targeted device.
At runtime, the status property will be updated to reflect whether an actual device matching the device name could be created.