aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete code pathsJake Petroules2018-02-121-4/+1
| | | | | Change-Id: Ib8c26b7697d03f24b4efe18f2e8a4a2573e1bd3b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-201-0/+1
|\ | | | | | | Change-Id: Id3a493d6e7366b9c17d4af94b42d7b6f10973835
| * Android: Fix compile with clang and unified headersBogDan Vatra2017-08-171-0/+1
| | | | | | | | | | Change-Id: I73c57348329628f2f7b1923332a9831ed0b64363 Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
* | SDL Controllers: report the Joystick nameAndrea Odetti2017-10-161-2/+6
| | | | | | | | | | | | | | | | | | | | 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>
* | Fix header include guards to reflect the actual file namesAndy Maloney2017-10-095-15/+15
| | | | | | | | | | | | Change-Id: I125a5e3f77649e6c9e8f18ebcfaa23599dc79b84 Reviewed-by: Andrea Odetti <mariofutire@gmail.com> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* | Propagate the gamepad name from the backend to QGamepadAndrea Odetti2017-10-062-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Replace Q_NULLPTR with nullptrKevin Funk2017-09-261-1/+1
| | | | | | | | | | Change-Id: I91a5ea5ace5fb8116ce6d369b9c3c5fb5bdaae83 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Android: remove support for local/debug deploymentJake Petroules2017-09-064-23/+18
|/ | | | | | | | | | | | | | 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>
* Disable senseless GCC 7 warning about maybe-uninitialized fieldsThiago Macieira2017-06-301-0/+3
| | | | | | | | | | | | | | | | | | 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>
* Fix SDL plugin building on PPC64leAndy Nichols2017-05-231-0/+2
| | | | | | | | SDL.h redefines bool, which breaks the build. Task-number: QTBUG-60679 Change-Id: I1ae833b26e867c0127000d8b09eb53fe8cdac0b8 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Support for Q_OS_ANDROID_EMBEDDED and android-embedded buildsOtto Ryynänen2017-04-241-1/+1
| | | | | | | | | | | 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>
* Merge remote-tracking branch 'origin/5.8' into 5.9Liang Qi2017-03-102-3/+3
|\ | | | | | | Change-Id: Ic7edff3a9f06ae205a5944e423d9ecbbfa321896
| * Fix -Wsign-compare warningRoland Winklmeier2017-01-261-1/+1
| | | | | | | | | | Change-Id: I936c06df1c75f03c57b4f34b67c76ca50db64ee0 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
| * Android: add override to fix warningsv5.8.0-rc1v5.8.0BogDan Vatra2016-11-291-2/+2
| | | | | | | | | | Change-Id: Iab3c25d019f707b90d6cd36028c3192f47293976 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* | General Module CleanupsAndy Nichols2017-01-3111-25/+25
|/ | | | | | | | | | 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>
* Convert the module to the new configuration systemLars Knoll2016-10-312-13/+3
| | | | | | | | ... 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>
* use modularized platformsupport modulesv5.8.0-beta1Oswald Buddenhagen2016-10-212-2/+2
| | | | | Change-Id: Ia86969ea365700629a1ccc04f94d3cafc756645b Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-free and ↵Marc Mutz2016-09-222-5/+5
| | | | | | | warning_clean Change-Id: I67813e8d2d27d39d772099b2d9d77bbe9bfa476e Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* Fix compilation after feature modularization in qtbaseLiang Qi2016-09-201-0/+1
| | | | | Change-Id: Iffe6d9ba611aa6a4a3e48e7206bbdf4b96465fc1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Adjust to qtConfig() changes in qtbasev5.8.0-alpha1Lars Knoll2016-08-191-1/+1
| | | | | | Change-Id: I1020ca26211e151c3a8e3bf766caa5ae90a01f83 Reviewed-by: Andy Nichols <andy.nichols@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Disable darwin plugin on watchOSJake Petroules2016-08-181-1/+1
| | | | | | | | 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>
* Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-021-0/+5
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I3d0c6ed292b1f3aa7c24d0c39a4ecfdd8f380d6c
| * Make sure JNI_OnLoad is not called more than onceBogDan Vatra2016-07-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Fix compileBogDan Vatra2016-05-061-3/+3
| | | | | | | | | | | | | | use qAbs instead of fabs Change-Id: Ic0426fd105c45dd09aad31bea74012fa4f5d6699 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* | Darwin: Fix when building in namespaceAndy Nichols2016-05-311-1/+1
| | | | | | | | | | Change-Id: I9b58ce00f24c76a2353c2818143d28f6bbe50cd9 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* | Added support to tvOS remote (microGamepad)Mike Krus2016-05-311-1/+44
| | | | | | | | | | | | | | | | | | | | 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>
* | Rename iOS backend to darwin as it applies to iOS, OS X and tvOSMike Krus2016-05-317-98/+96
| | | | | | | | | | Change-Id: Ie58d8aeb862d632e48611d23ff2cec7f0b9ce36c Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* | Fix iOS < 9.0 and OSX < 10.11 buildsMike Krus2016-05-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'origin/5.7' into devAndy Nichols2016-03-172-44/+139
|\| | | | | | | Change-Id: I091e2a9c4f5c65affd4b5b32c1c3e38b7c9076d9
| * Android: Android gamepads doesn't really need configuration.BogDan Vatra2016-02-161-1/+1
| | | | | | | | | | | | | | The default values seems to be enough for all Android gamepads Change-Id: I6e3d3b046cf4d0753cddbdfb8d5d6360366a9aa8 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
| * Android: resetConfiguration for goodBogDan Vatra2016-02-161-3/+6
| | | | | | | | | | | | | | There is no need to use any default values. Change-Id: Ib2b37f4198761ba06719585cb9bf114e15a4d082 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
| * Android: productId doesn't seem to be a persistent ID.BogDan Vatra2016-02-161-1/+1
| | | | | | | | | | | | | | getDescriptor is guarantee to be unique no matter what. Change-Id: I8db9745066547a3a210b0a305a6ee28ea0292825 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
| * Android: Fix default L2&R2 configuration.BogDan Vatra2016-02-161-8/+12
| | | | | | | | | | Change-Id: Ie74342fa2ddca8ec87695e9a23210bafe4617b64 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
| * Android: Don't add SOURCE_DPAD on Android API-12+BogDan Vatra2016-02-151-1/+2
| | | | | | | | | | | | | | | | | | 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>
| * Android: Fix Button[L2|R2] configurationBogDan Vatra2016-02-152-38/+125
| | | | | | | | | | | | | | These kind of buttons act as axis and we must handle them properly. Change-Id: Ifde9c1f8c03ab80c4fb899327ea803bb2f388a03 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* | QEvdevGamepadDevice: use std::abs() instead of fabs()Marc Mutz2016-03-081-3/+5
|/ | | | | | | | | | 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>
* Fix iOS build errorsLaszlo Agocs2016-02-011-3/+3
| | | | | Change-Id: I2670e027e491d7ed67f04906c095f2b90b1e9125 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Fix license headers in the Android backendLaszlo Agocs2016-02-013-0/+3
| | | | | | Change-Id: I8f2252e83ad3ec921eff59fbfe86bd0bf74616db Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* EVDEV: Button[L2|R2] Act as an axisBogDan Vatra2016-02-011-0/+2
| | | | | Change-Id: I33e90ece7a7563b9136cd40c8c730fcfc6bfa340 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* EVDEV: Don't send negative valuesBogDan Vatra2016-02-011-2/+2
| | | | | Change-Id: I7e8925d7488347217f83dd7de340912bb8bb113a Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* EVDEV: Use a reliable deviceIdBogDan Vatra2016-02-012-22/+33
| | | | | Change-Id: I12182a4501e6a6a0fc8608891590db473db8138a Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Say hello to android gamepad supportBogDan Vatra2015-10-2612-1/+884
| | | | | Change-Id: I3712c6846c671a1aae8ca3eeae5a80eddd7a558b Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Enable the usage of unknown gamepads.BogDan Vatra2015-10-262-213/+333
| | | | | | | | | 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>
* SDL2: Add all connected controllers at startupBogDan Vatra2015-10-152-9/+22
| | | | | Change-Id: I9555f83f01595ccc74cb5fd9f5e7b6184dd8bcf3 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* EVDEV: Fix normalize logic.BogDan Vatra2015-10-152-16/+21
| | | | | | | Also add and use flat info. Change-Id: Ie3229c01eba6ef71e49d3db8fdd6dc68137b1b0f Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* Rename index -> deviceIdBogDan Vatra2015-10-152-3/+3
| | | | | | | | 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>
* EVDEV: Add QGamepadManager::Button[L/R]2 buttons.BogDan Vatra2015-10-151-0/+8
| | | | | Change-Id: Ia240c05a55fe19a0d8670f950ca86bc2c5492d81 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
* iOS Gamepad supportAndy Nichols2015-08-146-0/+691
| | | | | | | | | 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>
* Initial public release of Qt Gamepad moduleAndy Nichols2015-05-1117-0/+1388
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