summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qinputaspect.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/tqtc/lts-5.15.11' into ↵v5.15.11-lts-lgplTarja Sundqvist2023-06-091-0/+2
|\ | | | | | | | | | | tqtc/lts-5.15-opensource Change-Id: I81f01dbde95cc9cd8e98c7fb9bf3a390aa27f379
| * Qt3DInput: includemocsMike Krus2022-06-271-0/+2
| | | | | | | | | | | | | | | | Task-number: QTBUG-103286 Change-Id: Icee0b9d6964e3a3e076c2694a563666fa1b613d3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> (cherry picked from commit ae240f4a745c9a7429284a186726ae0900da63c0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* | Revert "Update commercial license headers"v5.15.3-lts-lgplTarja Sundqvist2021-03-231-19/+19
|/ | | | | | | | | | | This reverts commit 03e5f60e585701608c1181365faee484d7a1f14c. Revert of commercial license headers is required for Qt 5.15.3 opensource release. Task-number: QTBUG-91108 Change-Id: I359e89ed77b1b2750607617d138ebb6c316f0296 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Update commercial license headersTarja Sundqvist2021-02-021-19/+19
| | | | | | | | | | | | | | | | Updated header.COMM to the files in tqtc-qt3d. Examples, documentation files or tests are not updated. The commercial license header may contain some additional lines so that its line count equals with the earlier license header. Reason for this is that some autotests use hard coded line numbers and a change in the line count causes failures in tests. Task-number: QTQAINFRA-4155 Change-Id: I139c8ad72c042b0900239decc36cfed4bc1c4951 Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
* Revert "Fix post FF API changes"Mike Krus2019-12-031-19/+19
| | | | | | | 84766ed9098f10efc53e4e43a75eef38fce7fbf6 Change-Id: I12341ec1b7bc68a7586c6671aa7b8f21caed17e0 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix post FF API changesMike Krus2019-10-221-19/+19
| | | | | Change-Id: I347f6df41c0a4f2295831e78248669b4a2d6b5ef Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QGamepadInput to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: I06ad1e36bfe3e1222550780c6a661ed6c3336f46 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QPhysicalDeviceProxy to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: I0126310365663ae1be1d1cb8ebd4a896a5712c4a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QInputSettings to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: Ifb5959025e9016525f8c2d57a94fed103b5b6b1a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QLogicalDevice to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: I6e176c19ceda3ca1c0bf03da4d78fe92ec3344a7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update input action classes to use direct syncMike Krus2019-10-011-3/+3
| | | | | Change-Id: I6126a9b51e5d681ad312bf1df5ca694c6d712294 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update Axis Input classes to use direct syncMike Krus2019-10-011-2/+2
| | | | | Change-Id: I22b0bb0fdf966cba536676e360dae5c9701e9ecb Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QMouseHandler to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: Ia3fe8a32ca2f750c866f8df91e53ff0ea4d53dcc Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAxisAccumulator to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: Ie68ace96dd3367533508c44e5c5ab8c199b81ce9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QKeyboardHandler to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: I08fdf7d4beccc512f84e70449ed706eab6df7d0b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update device nodes to use direct syncMike Krus2019-10-011-3/+3
| | | | | Change-Id: Ic93968816b719ff407db1d1f2f67d906fab3ca0a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAxisSetting to use direct syncMike Krus2019-10-011-1/+1
| | | | | Change-Id: Ib8067fe61bb0fc1994a4cdfff912e454a0799d44 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAction to use direct syncingMike Krus2019-10-011-1/+1
| | | | | Change-Id: I097be63cf17bfa322a87900fd8d45bb59bc344a8 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAxis to use direct syncMike Krus2019-09-301-1/+1
| | | | | Change-Id: Id159885d3c3ef4f2582a7b308350c6b43182f521 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Enable direct syncing on input aspectMike Krus2019-09-301-0/+8
| | | | | | | | | Requires adding new intermediate base class. Will update classes as the functionality is introduced since the static casting is not called unless the class supports syncing. Change-Id: I157c76ae520c1c9e49d46e22f063b7738bbec707 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix GCC warning about cv qualifiers in castThiago Macieira2019-02-271-1/+1
| | | | | | | qinputaspect.cpp:226:56: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] Change-Id: Id061f35c088044b69a15fffd15818f24191f9d72 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Fix documentation warnings related to Clang QDoc parserTopi Reinio2018-04-201-5/+5
| | | | | | | | | | | | | | | | | | | | | Since Qt 5.11, QDoc uses Clang to parse C++ documentation. Clang requires a module header, as well as proper include paths, to build a precompiled header and process the sources. To do this, add a custom module header that pulls in all Qt 3D modules - this way, we can continue using a single documentation project to covers all of Qt 3D. Fix all documentation warnings are caused by missing namespaces, QML module/type names and typos, as well as a number of linking problems and other minor issues. After this change, the remaining documentation issues consist of 'No documentation for ...' warnings. Task-number: QTBUG-67790 Change-Id: I38b91163c475a00cc1893e793240470c5409eb57 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Merge branch '5.10' into devSean Harmer2018-01-171-1/+1
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I248aa369ba98659a61e563fd29cc811c76ea1e2d
| * Iterate by const reference on handlesMike Krus2018-01-131-1/+1
| | | | | | | | | | | | | | | | When iterating on handles, use const references to avoid copy of non trivial type. Found by Clazy clazy-range-loop Change-Id: I33ec54b3958160da2517e196411bcf92cd7b3bff Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Improve plugin loading with -no-feature-libraryUlf Hermann2017-10-201-3/+0
| | | | | | | | | | | | | | | | | | | | Drop an unused include and make more of an effort to load (possibly static) QInputDeviceIntegration and QSceneImportFactory plugins. pluginPath was unused in qsceneimportfactory.cpp in this case, and generated compile warnings. Change-Id: I033c5bace84018a9e6c640b4318f2d34b91f7c19 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | Replace Q_NULLPTR with nullptrKevin Funk2017-09-251-1/+1
|/ | | | | Change-Id: I480f8b917e41d514f9efff01b2f2664b61ea3440 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Merge branch '5.8' into 5.9Sean Harmer2017-04-021-37/+39
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/core/jobs/qthreadpooler.cpp src/core/nodes/qcomponent.cpp src/core/qpostman.cpp src/core/qscene_p.h src/core/services/qservicelocator_p.h src/input/frontend/qinputaspect.cpp src/plugins/sceneparsers/assimp/assimpimporter.cpp src/plugins/sceneparsers/assimp/assimpimporter.h src/plugins/sceneparsers/gltf/gltfimporter.h src/plugins/sceneparsers/gltf/gltfio.cpp src/quick3d/imports/core/qt3dquick3dcoreplugin.cpp src/quick3d/imports/extras/qt3dquick3dextrasplugin.cpp src/quick3d/imports/render/qt3dquick3drenderplugin.cpp src/quick3d/quick3dextras/qt3dquickwindow.cpp Change-Id: I3566708c6f74a34959e7bb64b64e93647ca3f699
| * Coding convention fix for Src/inputRobert Brock2017-03-161-35/+36
| | | | | | | | | | | | | | | | Reordering the header includes to comply with Qt coding conventions Task-number: QTBUG-56185 Change-Id: I1d1b61c2fac42505f85a1c4421e1292259270568 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Wrap QLibrary header inclusion inside QT_CONFIG(library)Kimmo Ollila2017-03-211-0/+2
|/ | | | | Change-Id: I9f5f5e467bf271ded01d2f59354e19a567ea456e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Fix warnings about unregistered metatypesSean Harmer2016-12-081-0/+3
| | | | | | Task-number: QTBUG-57495 Change-Id: Ia1dc858d3c6c223498cec3644dcd8d35b7181630 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Add plumbing and process AxisAccumulators each frameSean Harmer2016-12-071-0/+21
| | | | | Change-Id: I91a0f9384c7ef2ba642db1a2becdba1d2e374d87 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* QInputAspect: register functor to create PhysicalDeviceProxyPaul Lemire2016-11-191-0/+2
| | | | | Change-Id: I61843b640e63c6d88727eda1587cd0b24d3ea56b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputAspect: use the load device wrapper jobPaul Lemire2016-11-181-0/+11
| | | | | Change-Id: Ieb108830fb4635cf155bbf0c5c9ddba167b7fba7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: move createPhysicalDevice into input handlerPaul Lemire2016-11-181-7/+1
| | | | | | | This will avoid code duplication when the device wrapper loader job is introduced Change-Id: Ia970b88f8c6aa484b30b5154d107fa7a1f155612 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Respect logical devices enabled stateKevin Ottens2016-10-291-0/+4
| | | | | Change-Id: I7f2a21f85616ed374ee6d3b96ebe9f55987917de Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputAspect: slightly simplify createPhysicalDevicePaul Lemire2016-08-271-3/+4
| | | | | Change-Id: Ibb21c59904bd7077e0e254fce5822241b2b9ee82 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* QInputAspect::jobToExcute: time is in fact usedKevin Ottens2016-08-241-1/+0
| | | | | Change-Id: I63f19713c3c7b248b9e278f54201d6da2aba9d55 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* More doc for input ModuleColin Ogilvie2016-06-031-1/+1
| | | | | | Task-number: QTBUG-46037 Change-Id: Ifc90bdc84bfd44e29e9287c1e7d24108b36e900d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Transfer previously written doc for input moduleColin Ogilvie2016-06-031-5/+12
| | | | | | Task-number: QTBUG-46037 Change-Id: I43a3b84cb55e67b30b1b145aabbffa23f9cf9017 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add doc skeleton for Qt3DInputTomi Korpipää2016-05-251-1/+23
| | | | | | | | | | | | | Conflicts: src/input/frontend/qanalogaxisinput.cpp src/input/frontend/qaxis.cpp src/input/frontend/qaxissetting.cpp src/input/frontend/qbuttonaxisinput.cpp src/input/frontend/qinputsettings.cpp src/input/frontend/qmousedevice.cpp Change-Id: Ic3e06179f745520d9c49af8d8242af360cbd20d8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* De-inline dtors of aspect classesMarc Mutz2016-05-141-0/+5
| | | | | | | | | Costs 170B each in Logic, Render, Input, but otherwise we'll not be able to add code to the dtors down the line until Qt 6. Change-Id: Icf71bd959f2efa3c67bccaf166569e06a013fef1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Use some constructor delegationMarc Mutz2016-05-141-1/+7
| | | | | | | | | | | | | to avoid code duplication (in both: executable and source code senses). Text size savings on optimized GCC 6.0 Linux AMD64 builds: Core: 16 Logic: 192 Input: -304 Render: 408 Change-Id: I23dd01fd4efe226c22942c24b21bbe20027c90b1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* input/frontend: eradicate Q_FOREACH loops [low-risk]Marc Mutz2016-05-051-10/+12
| | | | | | | | | | | | | | | | ... by replacing them with C++11 range-for loops. To avoid detaches of these mutable Qt containers, wrap the container in qAsConst(), where needed. This is the batch with low-risk changes. They operate on local containers or the loop body clearly does not cause the container to change. Saves ~2.2KiB (0.44%) in text size on optimized GCC 6.0 Linux AMD64 builds. Change-Id: Ieedc74c3d5d8f843dd4076b1c2d7f3de148c150a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Make QInputDevicePlugin and friends privateKevin Ottens2016-05-021-1/+1
| | | | | | | | | Now QInputDevicePlugin, QInputDeviceIntegration and QAbstractPhysicalDeviceBackendNode are private. Change-Id: I8fad31770c6ef7d01781a98654859124a1323406 Task-number: QTBUG-51453 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Turn QAxisInput into QAbstractAxisInputKevin Ottens2016-05-021-2/+0
| | | | | | Change-Id: If31fe8612c177b3383d63cf5f50c34d088f0d72b Task-number: QTBUG-51474 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Split QAnalogAxisInput out of QAxisInputKevin Ottens2016-05-021-1/+2
| | | | | | | | The axis property of QAxisInput goes there. Change-Id: Ie226de652848909fc6e3a425612d877ef18b35f3 Task-number: QTBUG-51474 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Splitting of QAxisInputRobert Brock2016-05-021-0/+3
| | | | | | | | | Placed buttons and scale into a new class named QButtonAxisInput Change-Id: I0e8407dc361d9d6eda38973a8950f77b17119467 Task-number: QTBUG-51474 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Q_NULLPTR -> nullptrSean Harmer2016-05-011-4/+4
| | | | | | Task-number: QTBUG-52736 Change-Id: I58f9cbcdf018e7b672d33dd865067485412b79fe Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Make QGenericInputDevice privateMike Krus2016-03-241-1/+1
| | | | | | | | Still need to decide how to expose it to QML Task-number: QTBUG-51426 Change-Id: I8fa6927ddaf7f07afb389bf1915798639439244c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Fix install with GamepadAnton Kudryavtsev2016-03-231-1/+1
| | | | | | | | | | | Include Qt3DInput/private/qgamepadinput_p.h istead of Qt3DInput/qgamepadinput.h. Since QGamepadInput is private now. Task-number: QTBUG-52080 Change-Id: Icd5908e4761c9a9d62b8dc545d05d9765ba638fe Reviewed-by: Sean Harmer <sean.harmer@kdab.com>