QMouseController Class


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 }


Public Functions

QMouseController(Qt3DCore::QNode *parent = Q_NULLPTR)
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)


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.


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)

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