QMouseController Class

(Qt3DInput::QMouseController)

QMouseController is in charge of dispatching mouse events to attached QMouseInput objects. More...

Header: #include <QMouseController>
qmake: QT += 3dinput
Since: Qt 5.5
Instantiated By: MouseController
Inherits: Qt3DInput::QAbstractPhysicalDevice

Public Types

enum Axis { X, Y }
enum Button { Left, Center, Right }

Properties

Public Functions

QMouseController(Qt3DCore::QNode *parent = Q_NULLPTR)
~QMouseController()
float sensitivity() const

Reimplemented Public Functions

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

Public Slots

void setSensitivity(float value)

Signals

void sensitivityChanged(float value)

Protected Functions

QMouseController(QMouseControllerPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)
void copy(const Qt3DCore::QNode *ref)
void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)

Additional Inherited Members

Detailed Description

QMouseController is in charge of dispatching mouse events to attached QMouseInput objects.

See also QMouseInput.

Member Type Documentation

enum QMouseController::Axis

enum QMouseController::Button

Property Documentation

sensitivity : float

Access functions:

float sensitivity() const
void setSensitivity(float value)

Notifier signal:

void sensitivityChanged(float value)

Member Function Documentation

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

Default constructs an instance of QMouseController.

[protected] QMouseController::QMouseController(QMouseControllerPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)

Copy constructor.

QMouseController::~QMouseController()

Destroys this QMouseController object.

[virtual] int QMouseController::axisCount() const

[virtual] int QMouseController::axisIdentifier(const QString &name) const

[virtual] QStringList QMouseController::axisNames() const

[virtual] int QMouseController::buttonCount() const

[virtual] int QMouseController::buttonIdentifier(const QString &name) const

[virtual] QStringList QMouseController::buttonNames() const

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

[protected] void QMouseController::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qt3dinput-qmousecontroller.html