QAbstractPhysicalDeviceProxy Class | Qt 3D 5.12.9

- Qt 5.12
- Qt 3D
- C++ Classes
- QAbstractPhysicalDeviceProxy
- Qt 5.12.9 Reference Documentation

# QAbstractPhysicalDeviceProxy 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

- List of all members, including inherited members
- Obsolete members

## Public Types

enum | DeviceStatus { Ready, NotFound }

## Properties

- deviceName : const QString
- status : const QAbstractPhysicalDeviceProxy::DeviceStatus

- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject

## Public Functions

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

## Reimplemented Public Functions

virtual int | axisCount() const override
virtual int | axisIdentifier(const QString &name) const override
virtual QStringList | axisNames() const override
virtual int | buttonCount() const override
virtual int | buttonIdentifier(const QString &name) const override
virtual QStringList | buttonNames() const override

- 9 public functions inherited from Qt3DInput::QAbstractPhysicalDevice
- 13 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject

## Signals

void | statusChanged(QAbstractPhysicalDeviceProxy::DeviceStatus status)

- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject

## Static Public Members

const QMetaObject | staticMetaObject

- 9 static public members inherited from QObject

### Additional Inherited Members

- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject

## Detailed Description

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

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.

## Member Type Documentation

### enum QAbstractPhysicalDeviceProxy::DeviceStatus

## Property Documentation

### deviceName : const QString

Access functions:

QString | deviceName() const

### status : const QAbstractPhysicalDeviceProxy::DeviceStatus

Access functions:

Qt3DInput::QAbstractPhysicalDeviceProxy::DeviceStatus | status() const

Notifier signal:

void | statusChanged(QAbstractPhysicalDeviceProxy::DeviceStatus status)

## Member Function Documentation

### `[override virtual]` int QAbstractPhysicalDeviceProxy::axisCount() const

### `[override virtual]` int QAbstractPhysicalDeviceProxy::axisIdentifier(const QString &name) const

### `[override virtual]` QStringList QAbstractPhysicalDeviceProxy::axisNames() const

### `[override virtual]` int QAbstractPhysicalDeviceProxy::buttonCount() const

### `[override virtual]` int QAbstractPhysicalDeviceProxy::buttonIdentifier(const QString &name) const

### `[override virtual]` QStringList QAbstractPhysicalDeviceProxy::buttonNames() const