QAxisInput Class

(Qt3DInput::QAxisInput)
Header: #include <QAxisInput>
qmake: QT += 3dinput
Since: Qt 5.5
Instantiated By: AxisInput
Inherits: Qt3DCore::QNode

Properties

Public Functions

QAxisInput(Qt3DCore::QNode *parent = Q_NULLPTR)
~QAxisInput()
int axis() const
QVariantList keys() const
float scale() const
QAbstractPhysicalDevice *sourceDevice() const

Public Slots

void setAxis(int axis)
void setKeys(const QVariantList &keys)
void setScale(float scale)
void setSourceDevice(QAbstractPhysicalDevice *sourceDevice)

Signals

void axisChanged(int axis)
void keysChanged(const QVariantList &keys)
void scaleChanged(float scale)
void sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice)

Protected Functions

void copy(const Qt3DCore::QNode *ref)

Additional Inherited Members

Detailed Description

Property Documentation

axis : int

Access functions:

int axis() const
void setAxis(int axis)

Notifier signal:

void axisChanged(int axis)

keys : QVariantList

Access functions:

QVariantList keys() const
void setKeys(const QVariantList &keys)

Notifier signal:

void keysChanged(const QVariantList &keys)

scale : float

Access functions:

float scale() const
void setScale(float scale)

Notifier signal:

void scaleChanged(float scale)

sourceDevice : Qt3DInput::QAbstractPhysicalDevice *

Access functions:

QAbstractPhysicalDevice *sourceDevice() const
void setSourceDevice(QAbstractPhysicalDevice *sourceDevice)

Notifier signal:

void sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice)

Member Function Documentation

QAxisInput::QAxisInput(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QAxisInput.

QAxisInput::~QAxisInput()

Destroys the instance of QAxisInput.

[protected] void QAxisInput::copy(const Qt3DCore::QNode *ref)

© 2017 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.