QAbstractPhysicalDeviceProxy Class

class Qt3DInput::QAbstractPhysicalDeviceProxy

Qt3DInput::QAbstractPhysicalDeviceProxy acts as a proxy for an actual Qt3DInput::QQAbstractPhysicalDevice device. More...

Header: #include <QAbstractPhysicalDeviceProxy>
qmake: QT += 3dinput
Since: Qt 5.8
Inherits: Qt3DInput::QAbstractPhysicalDevice

This class was introduced in Qt 5.8.

Public Functions

QString deviceName() const
Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus status() const

Signals

void statusChanged(QAbstractPhysicalDeviceProxy::DeviceStatus status)

Detailed Description

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.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.