QMouseDevice Class▲
- 
					Header: QMouseDevice 
- 
					Since: Qt 5.5 
- 
					qmake: QT += 3dinput 
- 
					Inherited By: 
- 
					Instantiated By: qml-qt3d-input-mousedevice.xml 
- 
					Inherits: Qt3DInput::QAbstractPhysicalDevice 
Detailed Description▲
A QMouseDevice delegates mouse events from physical mouse device to QMouseHandler objects. The sensitivity of the mouse can be controlled with the QMouseDevice::sensitivity property, which specifies the rate in which the logical mouse coordinates change in response to physical movement of the mouse.
See Also▲
See also QMouseHandler
Member Type Documentation▲
enum QMouseDevice::Axis▲
The mouse axis.
| Constant | |
|---|---|
| 0 | |
| 1 | |
| Qt3DInput::QMouseDevice::WheelX | 2 | 
| Qt3DInput::QMouseDevice::WheelY | 3 | 
See Also▲
See also Qt3DInput::QAnalogAxisInput::setAxis
Property Documentation▲
sensitivity : float▲
Holds the sensitivity of the mouse device. The default is 0.1.
Access functions:
- 
							float sensitivity() const 
- 
							void setSensitivity(float value) 
Notifier signal:
- 
							void sensitivityChanged(float value) 
Member Function Documentation▲
[explicit] QMouseDevice::QMouseDevice(Qt3DCore::QNode *parent = nullptr)▲
Constructs a new QMouseDevice instance with parent parent.
[override virtual] int QMouseDevice::axisCount() const▲
Reimplements: QAbstractPhysicalDevice::axisCount() const.
Returns the axis count.
Currently always returns 4.
[override virtual] int QMouseDevice::axisIdentifier(const QString &name) const▲
Reimplements: QAbstractPhysicalDevice::axisIdentifier(const QString &name) const.
Convert axis name to axis identifier.
[override virtual] QStringList QMouseDevice::axisNames() const▲
Reimplements: QAbstractPhysicalDevice::axisNames() const.
Returns the names of the axis.
Currently always returns StringList["X", "Y"]
[override virtual] int QMouseDevice::buttonCount() const▲
Returns the button count.
Currently always returns 3.
[override virtual] int QMouseDevice::buttonIdentifier(const QString &name) const▲
Returns the button identifier that corresponds with the specified name. The possible return values are documented in QMouseEvent::Buttons.
[override virtual] QStringList QMouseDevice::buttonNames() const▲
Returns the names of the buttons.
Currently always returns StringList["Left", "Right", "Center"]




