Commit Graph

24 Commits

Author SHA1 Message Date
Johan Solbakken 39bbb8049f Expand scope of QtGamepad to QtUniversalInput
This patch transforms the QtGamepad module from Qt 5 into a new
module that expands the scope to include all forms of exotic input.

The majority of the previous QtGamepad functionality and APIs are
preserved, but now there is also a more general API for getting
the state of input devices like joysticks, flight yokes, and
any other devices that define themselves in terms of buttons and
axes.

In addition to being able to receive input, it is also now possible
to output feedback in devices that support it.

Experimental input mapping functionality has been added to facilitate
mapping an arbitrary input to a predefined action.

Change-Id: Ic35b73282944cfd4eea9defbcf82c4abc55d7237
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2024-06-09 19:22:21 +02:00
Assam Boudjelthia 54e48f16bb Android: rename Android's package name for Qt 6
Rename Android package name org.qtproject.qt5.android to
org.qtproject.qt.android to avoid inconsistency with Qt 6 name.
Also, we include the major version number in the jar target.

Task-number: QTBUG-86969
Change-Id: If2c7e014ed52dd97e86c5a179dfbcbcce915ee83
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2020-10-05 09:51:51 +03:00
Eskil Abrahamsen Blomfeldt 57a786870d Update AndroidManifest.xml to be compatible with Qt 5.14
Necessary changes to be compatible with AAB changes in Qt 5.14.

Change-Id: I014c49a0ff01b9d2d1d086049d6edb885c9fac52
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2019-10-25 11:50:46 +02:00
Alex Blasche 653900f1d4 Fix building examples on Android
Qt 5.13 lifted the minimal Android SDK version to 21. The example
had a too low version.

Change-Id: I3b9bc936799e334635898435366167f91c002c75
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2019-04-26 06:20:14 +00:00
Paul Wicking e8dc617f6f Doc: Add missing dots (qtgamepad)
Task-number: QTBUG-68933
Change-Id: Ida6cb8a63752c1dc127fcbe807e9f40b68f75772
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2018-06-19 09:54:25 +00:00
Liang Qi 4ca89439b3 Merge remote-tracking branch 'origin/5.10' into dev
Change-Id: Id3a493d6e7366b9c17d4af94b42d7b6f10973835
2017-11-20 13:17:05 +01:00
Kai Koehne 0e2408a272 Fix outdated BSD license header
Change-Id: I87851e4882771a75121915d84c07dc8fc2feb8aa
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2017-10-17 12:42:12 +00:00
Kai Koehne 704114e192 Fix outdated FDL license header
Change-Id: I3f63e9c1a635fbbc61ae62ee4d132ee635c66c87
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2017-10-17 12:42:08 +00:00
Andy Maloney 6bc67065a2 Turn on debug logging for simple gamepad example
The example fails silently, so turn on debug logging so we can see what's
happening and add a debug message if it fails to find any gamepads.

Change-Id: I5ceedc9734836e1a44788c0912c3cbcfbb7cb158
Reviewed-by: Andrea Odetti <mariofutire@gmail.com>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2017-10-09 08:48:52 +00:00
Andy Nichols 9c7ed97cf9 Cleanup Examples
Change-Id: I36de0a3ba85b6b89547792badaa06c50f0e4ccc3
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2017-02-03 13:46:51 +00:00
Laszlo Agocs 8ab7f76ab7 quickGamepad: Remove unused graphicaleffects import
Change-Id: Icc406b1c53b129358ac394bb900a587017b4c3d7
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2017-01-31 12:38:09 +00:00
Andy Nichols b3f96027ba Merge remote-tracking branch 'origin/5.7' into dev
Change-Id: Icaa4aac81bdc8597de9c0bf09da19dfb327278e0
2016-05-31 14:52:28 +02:00
Andy Nichols eaf8a9800e Deploy examples to the standard examples directory
Examples were using the default Qt Creator generated deployment
include which does not have the correct target paths.

Task-number: QTBUG-51918
Change-Id: I6d217c6964c2cdab852ea1067bd0adcb6f34534a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-05-24 11:52:39 +00:00
Liang Qi 2d57028b7a Merge remote-tracking branch 'origin/5.7' into dev
Conflicts:
	src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp

Change-Id: I7ca2964746f7a63634529bfe119f68ee796ff22c
2016-05-13 11:15:51 +02:00
Venugopal Shivashankar e29435d0d6 Doc: Add basic documentation
Change-Id: I185eb2b6d4fc4da9db12517e9608af21cc1ffa9c
Task-number: QTBUG-52502
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
2016-04-25 08:04:29 +00:00
Oswald Buddenhagen dee527d227 fix build with qt in namespace
Change-Id: I18ccf2e2f6d24b8079b0549b22a1e3fe75919046
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
2016-04-11 14:37:55 +00:00
Eirik Aavitsland 8dad1803a6 Remove the traces of the discontinued android-no-sdk platform
Change-Id: I656c4d3c1f881f0ce4ce6e57a687aa35d0f50ac3
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
2016-04-11 14:31:39 +00:00
Mike Krus 567c0a3f11 Remove widgets dependency for quickGamepad
Change-Id: I32472391bb6b7b0c6f6f90f7164f8c5f0cbad660
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
2016-02-23 16:29:34 +00:00
Frederik Gladhorn 632a77b9cf Fix example compilation with no-widgets
Change-Id: I87bb9eedb872999dcb55cbe38b349cbbe2d1bc64
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
2016-02-11 08:25:29 +00:00
Laszlo Agocs 585359ba06 Fix Quick dependency for mouseItem example
Change-Id: I5bb0f3c336e3640b5f141837de80f6959590f2e5
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
2016-02-01 15:06:49 +00:00
Laszlo Agocs b8335a7920 License header fixes
Change-Id: Ida89003b5d95417ce8be21ab8e70f3e02f357ed8
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-02-01 15:06:42 +00:00
BogDan Vatra 63527552d2 Say hello to android gamepad support
Change-Id: I3712c6846c671a1aae8ca3eeae5a80eddd7a558b
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
2015-10-26 12:42:25 +00:00
BogDan Vatra c32e995bc7 Enable the usage of unknown gamepads.
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>
2015-10-26 12:40:37 +00:00
Andy Nichols 298e4e678b Initial public release of Qt Gamepad module
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
2015-05-11 16:48:38 +02:00