| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Change-Id: Ib8c26b7697d03f24b4efe18f2e8a4a2573e1bd3b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
|
|\
| |
| |
| | |
Change-Id: Id3a493d6e7366b9c17d4af94b42d7b6f10973835
|
| |
| |
| |
| |
| | |
Change-Id: I73c57348329628f2f7b1923332a9831ed0b64363
Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The controller name is a generic "XInput Controller",
while the joystick is more meaningful (e.g.)
"Microsoft X-Box 360 pad", the same as evdev.
Change-Id: If93acdadb20f0601cc08069efed4718b4320d3a3
Reviewed-by: Andy Maloney <asmaloney@gmail.com>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
| |
| |
| |
| |
| |
| | |
Change-Id: I125a5e3f77649e6c9e8f18ebcfaa23599dc79b84
Reviewed-by: Andrea Odetti <mariofutire@gmail.com>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added signals and slots to forward the name to QGamepad.
Previously the property name and signal nameChanged in QGamepad
were never used.
Now the plumbing is done and the 2 linux backends (evdev and SDL2)
forward the name.
Change-Id: I97261769524ddb23a31789e362e6de7bb30694f3
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
| |
| |
| |
| |
| | |
Change-Id: I91a5ea5ace5fb8116ce6d369b9c3c5fb5bdaae83
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes the pre-dexed JAR files activated by the absence of the
bundled_jar_file CONFIG option, as versions of Android >= 5 no longer
support this deployment mechanism.
Now, the "bundled" JARs simply become normal JARs containing class
files, and are neither activated by a bundled_jar_file CONFIG entry nor
do they have a -bundled suffix in the file's base name.
Task-number: QTBUG-62995
Change-Id: I940eaf71a55c589b740489660f49ef30feb79cab
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The GCC 7 output makes no sense because it doesn't explain where the
problem was. It only lists what fields were maybe uninitialized.
In file included from qevdevgamepadbackend.cpp:37:0:
qevdevgamepadbackend_p.h: In member function ‘T& QHash<K, V>::operator[](const Key&) [with Key = int; T = QEvdevGamepadDevice::EvdevAxisInfo]’:
qevdevgamepadbackend_p.h:82:12: error: ‘<anonymous>.QEvdevGamepadDevice::EvdevAxisInfo::flat’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
struct EvdevAxisInfo : public QGamepadBackend::AxisInfo<int>
^~~~~~~~~~~~~
qevdevgamepadbackend_p.h:82:12: error: ‘<anonymous>.QEvdevGamepadDevice::EvdevAxisInfo::gamepadMinButton’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
qevdevgamepadbackend_p.h:82:12: error: ‘<anonymous>.QEvdevGamepadDevice::EvdevAxisInfo::gamepadMaxButton’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
qevdevgamepadbackend_p.h:82:12: error: ‘<anonymous>.QEvdevGamepadDevice::EvdevAxisInfo::gamepadLastButton’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
Change-Id: Ia3e896da908f42939148fffd14c4b1ac4a7f6943
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
|
|
|
|
|
|
|
|
| |
SDL.h redefines bool, which breaks the build.
Task-number: QTBUG-60679
Change-Id: I1ae833b26e867c0127000d8b09eb53fe8cdac0b8
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
|
|
|
|
|
|
|
|
|
|
|
| |
The Embedded Android build (Boot to Qt Android injection) is defined by
having both Q_OS_ANDROID and Q_OS_ANDROID_EMBEDDED flags defined,
as well as having Qt config android-embedded.
This commit enables the possibility to build embedded Android builds.
(i.e. Qt build for Android baselayer only, without JNI)
Change-Id: I27602edbe6895215a640a25bc1427732d9a8d550
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
|\
| |
| |
| | |
Change-Id: Ic7edff3a9f06ae205a5944e423d9ecbbfa321896
|
| |
| |
| |
| |
| | |
Change-Id: I936c06df1c75f03c57b4f34b67c76ca50db64ee0
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
|
| |
| |
| |
| |
| | |
Change-Id: Iab3c25d019f707b90d6cd36028c3192f47293976
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
|/
|
|
|
|
|
|
|
|
| |
Removed reference to bsquask
nullptr instead of 0
explicit override keyword for virtuals
Q_SLOTS and Q_SIGNALS instead of keywords
Change-Id: I7dd96fa66003c52fe2d26decca73224b70896baa
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
|
|
|
|
|
|
|
|
| |
... and clean up the SDL detection. This also enables SDL use on
non-macOS Darwin platforms, per the library's documentation.
Change-Id: I4111fc8cb75b30662fe93b90e76a0c5563140656
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
|
|
|
|
| |
Change-Id: Ia86969ea365700629a1ccc04f94d3cafc756645b
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
|
|
|
|
|
|
| |
warning_clean
Change-Id: I67813e8d2d27d39d772099b2d9d77bbe9bfa476e
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
|
|
|
|
| |
Change-Id: Iffe6d9ba611aa6a4a3e48e7206bbdf4b96465fc1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
|
|
|
|
| |
Change-Id: I1020ca26211e151c3a8e3bf766caa5ae90a01f83
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
The dependent frameworks are not available on that platform.
Change-Id: I17a48c7e3136b647a3ec7f258e6979ee5dd8c9b7
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
Change-Id: I3d0c6ed292b1f3aa7c24d0c39a4ecfdd8f380d6c
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since Android 5.0 Google introduce a nasty bug[1] which calls
JNI_OnLoad more than once.
Basically every time when a library is loaded JNI_OnLoad is
called if found, but it calls *again* JNI_OnLoad of its .so
dependencies!
[1] Workaround https://code.google.com/p/android/issues/detail?id=215069
Change-Id: Id04f7e55ee93ec5adef791809eca481fdfdbab4e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| |
| |
| |
| |
| |
| |
| | |
use qAbs instead of fabs
Change-Id: Ic0426fd105c45dd09aad31bea74012fa4f5d6699
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
|
| |
| |
| |
| |
| | |
Change-Id: I9b58ce00f24c76a2353c2818143d28f6bbe50cd9
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Play/Pause buttons is X
Menu button is play/pause (don’t ask)
Press touch area is A
Touch area is left thumbstick
Change-Id: Idd51e8e4e8f20397475df801af42b82865f4c328
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
| |
| |
| |
| |
| | |
Change-Id: Ie58d8aeb862d632e48611d23ff2cec7f0b9ce36c
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
GCControllerPlayerIndex type was introduced in iOS 9 and OSX 10.11
respectively. Previously was just an int.
Was breaking CI builds which uses 10.10 (despite policy of using
latest OSX for builds).
Change-Id: Ic876daddd261fb4719f604c51d19ab9dcb790fa1
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
|
|\|
| |
| |
| | |
Change-Id: I091e2a9c4f5c65affd4b5b32c1c3e38b7c9076d9
|
| |
| |
| |
| |
| |
| |
| | |
The default values seems to be enough for all Android gamepads
Change-Id: I6e3d3b046cf4d0753cddbdfb8d5d6360366a9aa8
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| | |
There is no need to use any default values.
Change-Id: Ib2b37f4198761ba06719585cb9bf114e15a4d082
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| | |
getDescriptor is guarantee to be unique no matter what.
Change-Id: I8db9745066547a3a210b0a305a6ee28ea0292825
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
| |
| |
| |
| |
| | |
Change-Id: Ie74342fa2ddca8ec87695e9a23210bafe4617b64
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SOURCE_DPAD is used by non-gamepad devices (e.g. remote controls) to
send key events. We don't need to add them to our gampad list if the
O.S. knows gamepads.
Change-Id: I36ac1187f6d18e279e0b1cc431a7a55448ce61de
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
| |
| |
| |
| |
| |
| |
| | |
These kind of buttons act as axis and we must handle them properly.
Change-Id: Ifde9c1f8c03ab80c4fb899327ea803bb2f388a03
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|/
|
|
|
|
|
|
|
|
| |
Both includes were missing, so GCC complained that fabs() was not
declared.
Fix by including <cmath> and using std::abs() instead.
Change-Id: Ifc717bd68d3572e114937712c867c3d004c1fa2e
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
|
|
|
|
|
| |
Change-Id: I2670e027e491d7ed67f04906c095f2b90b1e9125
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: I8f2252e83ad3ec921eff59fbfe86bd0bf74616db
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I33e90ece7a7563b9136cd40c8c730fcfc6bfa340
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I7e8925d7488347217f83dd7de340912bb8bb113a
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I12182a4501e6a6a0fc8608891590db473db8138a
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I3712c6846c671a1aae8ca3eeae5a80eddd7a558b
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Allowing the user to configure every button & axis of (s)his gamepad,
will enable the usage of any gamepad.
Currently only evdev backed has this feature.
Change-Id: I6e0692980e77b448d20d5ba818b787a7b89e7257
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I9555f83f01595ccc74cb5fd9f5e7b6184dd8bcf3
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
|
|
| |
Also add and use flat info.
Change-Id: Ie3229c01eba6ef71e49d3db8fdd6dc68137b1b0f
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
index is not the smartest way to uniquely identify a device, let's use something that doesn't change.
Change-Id: Idf925b13efc8dd604f185ea8de44659509d11054
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ia240c05a55fe19a0d8670f950ca86bc2c5492d81
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Initial support for using the iOS GameController API to provide a
gamepad backend on iOS. Not all buttons are supported, and for some
reason the Pause button is inteded to behave as a toggle button.
Change-Id: Ibe6a3011a85ecf29731f9ac890efdac36b43e446
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
|
|
Qt Gamepad is a Qt 5 module that adds support for using Gamepad devices
(like the XBox 360 controller) inside of Qt applications.
Change-Id: I5dff629dcfdcc5625a90274017b8e97f45e8fd30
|