Gamepad QML Type▲
-
Import Statement: import QtGamepad 1.12
-
Instantiates:: https://
Detailed Description▲
Gamepad QML type is used to access the current state of gamepad hardware connected to a system
Property Documentation▲
[read-only] axisLeftX : double▲
The value of the left thumbstick's X axis. The axis values range from -1.0 to 1.0.
[read-only] axisLeftY : double▲
The value of the left thumbstick's Y axis. The axis values range from -1.0 to 1.0.
[read-only] axisRightX : double▲
This value of the right thumbstick's X axis. The axis values range from -1.0 to 1.0.
[read-only] axisRightY : double▲
This value of the right thumbstick's Y axis. The axis values range from -1.0 to 1.0.
[read-only] buttonL1 : bool▲
[read-only] buttonL2 : double▲
[read-only] buttonL3 : bool▲
[read-only] buttonR1 : bool▲
[read-only] buttonR2 : double▲
[read-only] buttonR3 : bool▲
[read-only] buttonA : bool▲
[read-only] buttonB : bool▲
[read-only] buttonDown : bool▲
[read-only] buttonLeft : bool▲
[read-only] buttonRight : bool▲
[read-only] buttonSelect : bool▲
[read-only] buttonStart : bool▲
[read-only] buttonUp : bool▲
[read-only] buttonX : bool▲
[read-only] buttonY : bool▲
[read-only] connected : bool▲
The connectivity state of the gamepad device. If a gamepad is connected, this property will be true, otherwise false.
deviceId : int▲
This property holds the deviceId of the gamepad device. Multiple gamepad devices can be connected at any given time, so setting this property defines which gamepad to use.
See Also▲
See also GamepadManager::connectedGamepads()
[read-only] name : string▲
The reported name of the gamepad if one is available.


