aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.qmake.conf2
-rw-r--r--src/gamepad/qgamepad.cpp37
-rw-r--r--src/imports/gamepad/plugins.qmltypes4
3 files changed, 10 insertions, 33 deletions
diff --git a/.qmake.conf b/.qmake.conf
index 7e57b5b..ffdb3bf 100644
--- a/.qmake.conf
+++ b/.qmake.conf
@@ -3,4 +3,4 @@ load(qt_build_config)
CONFIG += warning_clean
DEFINES += QT_NO_FOREACH
-MODULE_VERSION = 5.12.3
+MODULE_VERSION = 5.13.0
diff --git a/src/gamepad/qgamepad.cpp b/src/gamepad/qgamepad.cpp
index d55b169..6a1dc64 100644
--- a/src/gamepad/qgamepad.cpp
+++ b/src/gamepad/qgamepad.cpp
@@ -381,7 +381,7 @@ void QGamepadPrivate::_q_handleGamepadButtonReleaseEvent(int id, QGamepadManager
* \instantiates QGamepad
*
* Gamepad QML type is used to access the current state of gamepad
- * hardware connected to a system
+ * hardware connected to a system.
*/
/*!
@@ -421,7 +421,7 @@ QGamepad::~QGamepad()
* 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.
*
- * \sa GamepadManager::connectedGamepads()
+ * \sa {GamepadManager::connectedGamepads}{GamepadManager.connectedGamepads}
*/
int QGamepad::deviceId() const
{
@@ -431,17 +431,16 @@ int QGamepad::deviceId() const
/*!
* \property QGamepad::connected
- * \readonly
*
* The connectivity state of the gamepad device.
- * If a gamepad is connected, this property will be true, otherwise false.
+ * If a gamepad is connected, this property will be \c true, otherwise \c false.
*/
/*!
* \qmlproperty bool Gamepad::connected
* \readonly
*
* The connectivity state of the gamepad device.
- * If a gamepad is connected, this property will be true, otherwise false.
+ * If a gamepad is connected, this property will be \c true, otherwise \c false.
*/
bool QGamepad::isConnected() const
{
@@ -451,7 +450,6 @@ bool QGamepad::isConnected() const
/*!
* \property QGamepad::name
- * \readonly
*
* The reported name of the gamepad if one is available.
*/
@@ -469,7 +467,6 @@ QString QGamepad::name() const
/*!
* \property QGamepad::axisLeftX
- * \readonly
*
* The value of the left thumbstick's X axis.
* The axis values range from -1.0 to 1.0.
@@ -489,7 +486,6 @@ double QGamepad::axisLeftX() const
/*!
* \property QGamepad::axisLeftY
- * \readonly
*
* The value of the left thumbstick's Y axis.
* The axis values range from -1.0 to 1.0.
@@ -509,7 +505,6 @@ double QGamepad::axisLeftY() const
/*!
* \property QGamepad::axisRightX
- * \readonly
*
* This value of the right thumbstick's X axis.
* The axis values range from -1.0 to 1.0.
@@ -529,7 +524,6 @@ double QGamepad::axisRightX() const
/*!
* \property QGamepad::axisRightY
- * \readonly
*
* This value of the right thumbstick's Y axis.
* The axis values range from -1.0 to 1.0.
@@ -549,7 +543,6 @@ double QGamepad::axisRightY() const
/*!
* \property QGamepad::buttonA
- * \readonly
*
* The state of the A button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -569,7 +562,6 @@ bool QGamepad::buttonA() const
/*!
* \property QGamepad::buttonB
- * \readonly
*
* The state of the B button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -589,7 +581,6 @@ bool QGamepad::buttonB() const
/*!
* \property QGamepad::buttonX
- * \readonly
*
* The state of the X button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -609,7 +600,6 @@ bool QGamepad::buttonX() const
/*!
* \property QGamepad::buttonY
- * \readonly
*
* The state of the Y button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -629,7 +619,6 @@ bool QGamepad::buttonY() const
/*!
* \property QGamepad::buttonL1
- * \readonly
*
* The state of the left shoulder button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -649,7 +638,6 @@ bool QGamepad::buttonL1() const
/*!
* \property QGamepad::buttonR1
- * \readonly
*
* The state of the right shoulder button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -669,7 +657,6 @@ bool QGamepad::buttonR1() const
/*!
* \property QGamepad::buttonL2
- * \readonly
*
* The value of the left trigger button.
* This trigger value ranges from 0.0 when not pressed to 1.0
@@ -691,7 +678,6 @@ double QGamepad::buttonL2() const
/*!
* \property QGamepad::buttonR2
- * \readonly
*
* The value of the right trigger button.
* This trigger value ranges from 0.0 when not pressed to 1.0
@@ -713,7 +699,6 @@ double QGamepad::buttonR2() const
/*!
* \property QGamepad::buttonSelect
- * \readonly
*
* The state of the Select button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -735,7 +720,6 @@ bool QGamepad::buttonSelect() const
/*!
* \property QGamepad::buttonStart
- * \readonly
*
* The state of the Start button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -757,7 +741,6 @@ bool QGamepad::buttonStart() const
/*!
* \property QGamepad::buttonL3
- * \readonly
*
* The state of the left stick button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -779,7 +762,6 @@ bool QGamepad::buttonL3() const
/*!
* \property QGamepad::buttonR3
- * \readonly
*
* The state of the right stick button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -801,7 +783,6 @@ bool QGamepad::buttonR3() const
/*!
* \property QGamepad::buttonUp
- * \readonly
*
* The state of the direction pad up button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -821,7 +802,6 @@ bool QGamepad::buttonUp() const
/*!
* \property QGamepad::buttonDown
- * \readonly
*
* The of the direction pad down button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -841,7 +821,6 @@ bool QGamepad::buttonDown() const
/*!
* \property QGamepad::buttonLeft
- * \readonly
*
* The state of the direction pad left button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -861,7 +840,6 @@ bool QGamepad::buttonLeft() const
/*!
* \property QGamepad::buttonRight
- * \readonly
*
* The state of the direction pad right button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -881,13 +859,13 @@ bool QGamepad::buttonRight() const
/*!
* \property QGamepad::buttonCenter
- * \readonly
*
* The state of the center button.
* The value is \c true when pressed, and \c false when not pressed.
*/
/*
* \qmlproperty bool Gamepad::buttonCenter
+ * \readonly
*
* The state of the center button.
* The value is \c true when pressed, and \c false when not pressed.
@@ -900,12 +878,11 @@ bool QGamepad::buttonCenter() const
/*!
* \property QGamepad::buttonGuide
- * \readonly
*
* The state of the guide button.
* The value is \c true when pressed, and \c false when not pressed.
* This button is typically the one in the center of the gamepad with a logo.
- * Some gamepads will not have a guide button.
+ * Not all gamepads have a guide button.
*/
/*
* \qmlproperty bool Gamepad::buttonGuide
@@ -914,7 +891,7 @@ bool QGamepad::buttonCenter() const
* The state of the guide button.
* The value is \c true when pressed, and \c false when not pressed.
* This button is typically the one in the center of the gamepad with a logo.
- * Some gamepads will not have a guide button.
+ * Not all gamepads have a guide button.
*/
bool QGamepad::buttonGuide() const
diff --git a/src/imports/gamepad/plugins.qmltypes b/src/imports/gamepad/plugins.qmltypes
index 259e952..8ee1b4e 100644
--- a/src/imports/gamepad/plugins.qmltypes
+++ b/src/imports/gamepad/plugins.qmltypes
@@ -4,10 +4,10 @@ import QtQuick.tooling 1.2
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtGamepad 1.12'
+// 'qmlplugindump -nonrelocatable QtGamepad 1.13'
Module {
- dependencies: ["QtQuick 2.12"]
+ dependencies: ["QtQuick 2.0"]
Component {
name: "QGamepad"
prototype: "QObject"