Gamepad QML Type
A gamepad device connected to a system. More...
Import Statement: | import QtGamepad 1.12 |
Instantiates: | QGamepad |
Properties
- axisLeftX : double
- axisLeftY : double
- axisRightX : double
- axisRightY : double
- buttonL1 : bool
- buttonL2 : double
- buttonL3 : bool
- buttonR1 : bool
- buttonR2 : double
- buttonR3 : bool
- buttonA : bool
- buttonB : bool
- buttonDown : bool
- buttonLeft : bool
- buttonRight : bool
- buttonSelect : bool
- buttonStart : bool
- buttonUp : bool
- buttonX : bool
- buttonY : bool
- connected : bool
- deviceId : int
- name : string
Detailed Description
Gamepad QML type is used to access the current state of gamepad hardware connected to a system
Property Documentation
The value of the left thumbstick's X axis. The axis values range from -1.0 to 1.0.
The value of the left thumbstick's Y axis. The axis values range from -1.0 to 1.0.
This value of the right thumbstick's X axis. The axis values range from -1.0 to 1.0.
This value of the right thumbstick's Y axis. The axis values range from -1.0 to 1.0.
The state of the left shoulder button. The value is true
when pressed, and false
when not pressed.
The value of the left trigger button. This trigger value ranges from 0.0 when not pressed to 1.0 when pressed completely.
The state of the left stick button. The value is true
when pressed, and false
when not pressed. This button is usually triggered by pressing the left joystick itself.
The state of the right shoulder button. The value is true
when pressed, and false
when not pressed.
The value of the right trigger button. This trigger value ranges from 0.0 when not pressed to 1.0 when pressed completely.
The state of the right stick button. The value is true
when pressed, and false
when not pressed. This button is usually triggered by pressing the right joystick itself.
The state of the A button. The value is true
when pressed, and false
when not pressed.
The state of the B button. The value is true
when pressed, and false
when not pressed.
See also GamepadManager::connectedGamepads().
The state of the direction pad down button. The value is true
when pressed, and false
when not pressed.
The state of the direction pad left button. The value is true
when pressed, and false
when not pressed.
The state of the direction pad right button. The value is true
when pressed, and false
when not pressed.
The state of the Select button. The value is true
when pressed, and false
when not pressed. This button can sometimes be labeled as the Back button on some gamepads.
The state of the Start button. The value is true
when pressed, and false
when not pressed. This button can sometimes be labeled as the Forward button on some gamepads.
The state of the direction pad up button. The value is true
when pressed, and false
when not pressed.
The state of the X button. The value is true
when pressed, and false
when not pressed.
The state of the Y button. The value is true
when pressed, and false
when not pressed.
The connectivity state of the gamepad device. If a gamepad is connected, this property will be true, otherwise false.
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 GamepadManager::connectedGamepads().
© 2019 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.