summaryrefslogtreecommitdiffstats
path: root/src/input
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Update commercial license headers"v5.15.3-lts-lgplTarja Sundqvist2021-03-23152-3022/+3022
| | | | | | | | | | | 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-02152-3022/+3022
| | | | | | | | | | | | | | | | 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>
* QResourcesManager: switch to std::vectorPaul Lemire2020-06-041-1/+1
| | | | | | | | | | Given QVector is potentially slower for this use case and the fact that QVector might become QList in Qt6, we're better of using the std. Change-Id: If2c403439ddb856b60f8bfd5ae7c6ec1cb2c892a Reviewed-by: Mike Krus <mike.krus@kdab.com> (cherry picked from commit 04bdb35a6c5f5fe417c06392e6a0861d80ec9dba)
* Implement Mouse Click and Double Click on MouseHandlerMike Krus2020-03-192-3/+5
| | | | | | | | Looks like it actually never worked. Task-number: QTBUG-75219 Change-Id: I54e7c58be57c41461c95c48ec3e76aa45bf340a1 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Fix incorrect use of \default QDoc commandTopi Reinio2020-03-051-4/+4
| | | | | | | | | | | | | The command, despite its name, does not document a default value of a property or a parameter. Instead, it's specific to QML properties, marking a property as a default QML property. Replace incorrect use of the command with descriptions of default values. Fixes: QTBUG-82645 Change-Id: I5b457062ffe2e8d81c358119e6bebc11b0063090 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Fix typo in updateAxesContinuouslyKai Koehne2020-02-261-2/+2
| | | | | Change-Id: I34233db4540c7f6d31cc508ad541cd4d682a08ec Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* QMouseDevice: add updateAxesContinuously propertyPaul Lemire2020-01-285-2/+54
| | | | | | | | | | | The default behavior is to only update axes when one of the mouse buttons is pressed. This property, when enabled, allows to record X/Y axes value changes regardless of the state of the mouse buttons. [ChangeLog] QMouseDevice add updateAxesContinuously property Change-Id: Ib54a1e54c6c278ea08722760c2d317ec46437b2f Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix deprecation handlingMike Krus2020-01-141-0/+1
| | | | | | Change-Id: If981333f7a3d78028d4f08c59867453d4192b955 Task-number: QTBUG-81058 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Revert "Fix post FF API changes"Mike Krus2019-12-031-19/+19
| | | | | | | 84766ed9098f10efc53e4e43a75eef38fce7fbf6 Change-Id: I12341ec1b7bc68a7586c6671aa7b8f21caed17e0 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Revert "Update jobs to remove post FF changes"Mike Krus2019-12-0312-7/+19
| | | | | | | d521b994450f0a4febbd789ba66701ba24fdbe22 Change-Id: Ibe6d608e8400e69b50775c0eb156e74e4e90b25c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Doc: Fix documentation warningsTopi Reinio2019-11-134-8/+8
| | | | | | | | | | | | | | | | | | | | | | | - Add (basic) documentation for Qt3DAnimation::QAnimationCallback. - Add missing namespace qualifiers for \class, \fn, \instantiates, \sa, and \property commands. - Remove linking to example file pages, as QDoc no longe treats them as linkable targets. - Fix function/QML method parameter documentation - Fix missing \qmlproperty types - Fix linking to QKeyEvent in QtGui. - Move Qt3DRender::Quick namespace documentation to where QDoc can see it. - Add enum documentation for Qt3DRender::QBlitFramebuffer::InterpolationMethod and Qt3DRender::QMesh::Status. - Other minor fixes This brings the current warning count to zero. Fixes: QTBUG-79822 Change-Id: I1154a7f9c34917a3f240e99da0e7a300be7d65a0 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Update jobs to remove post FF changesMike Krus2019-10-2212-19/+7
| | | | | | | Made the d_ptr private again. Change-Id: Ia5ba23b03cd22290d5c922e9a1c657a67ff98977 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>
* Restore sceneChangeEvent overload that were removedPaul Lemire2019-10-2212-0/+50
| | | | | | | | Not BIC compatible so they must stay until Qt6. Added TODO above them to make it easier to track for Qt6. Change-Id: Ia1adba25be5d55d3fa836727877c7c1f7346b668 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* QMouseEvent: fix BIC issue following Modifier/Modifiers changePaul Lemire2019-10-222-11/+10
| | | | | | | | | Will have to be done only in Qt6 unfortunately. For now we abused the fact that an int is used to store the enum so that we store multiple Modifiers values into one Modifiers enum. Change-Id: Ib111140afbe07cfd62fcf3cb8e1a57d3ad848a89 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix Coverity warningsMike Krus2019-10-212-0/+2
| | | | | Change-Id: I00c875b48d838170fddf0b92f0ac5592828c6f0f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Clean up old property update codeMike Krus2019-10-2010-20/+0
| | | | | | | Remove useless includes, clear up commented out or unused code Change-Id: Id3382b16108d79f1e2522d43463c8d70aef8fcb2 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Restore use of Added/Removed messages for aspects not supporting syncMike Krus2019-10-146-14/+14
| | | | | | | | | If (third party) aspects don't support direct sync, restore use of PropertyValueAdded and PropertyValueRemoved messages so avoid breaking existing code Change-Id: Icac717583a8fe72acdb0cf599981251e310734bd Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update MouseEventDispatcherJob to use direct syncMike Krus2019-10-116-63/+45
| | | | | Change-Id: I972765a3937e580271127d7aa7e3cb76d76de818 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update LoadProxyDeviceJob to use direct syncMike Krus2019-10-116-44/+65
| | | | | Change-Id: I6d49abd28a665f89096ec2baaa861490c071d3d3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update keyboard handling jobs to use direct syncMike Krus2019-10-118-53/+78
| | | | | Change-Id: I5284594ac1c23e59cf1d55ad90032c8cb89df657 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update AxisAccumulatorJob to use direct syncMike Krus2019-10-115-37/+40
| | | | | Change-Id: I4e64fa9f94dad1392b80851c2a6d8d4e013147f7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update UpdateAxisActionJob to use direct syncMike Krus2019-10-098-51/+63
| | | | | Change-Id: I227e1a5005a9001ac49d8b29daeb23be25fda53b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Clean up includesMike Krus2019-10-0115-30/+0
| | | | | | | | | Remove include statements for classes that are no longer used. Makes it easier to find remaining use cases that need addressed before complete removal in Qt 6. Change-Id: I60529ba1929ad64b162d3847d5df47cde2a60dad 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-013-12/+19
| | | | | Change-Id: I0126310365663ae1be1d1cb8ebd4a896a5712c4a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QInputSettings to use direct syncMike Krus2019-10-013-21/+11
| | | | | Change-Id: Ifb5959025e9016525f8c2d57a94fed103b5b6b1a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QLogicalDevice to use direct syncMike Krus2019-10-014-60/+17
| | | | | Change-Id: I6e176c19ceda3ca1c0bf03da4d78fe92ec3344a7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update input action classes to use direct syncMike Krus2019-10-0111-145/+41
| | | | | Change-Id: I6126a9b51e5d681ad312bf1df5ca694c6d712294 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update Axis Input classes to use direct syncMike Krus2019-10-017-68/+32
| | | | | Change-Id: I22b0bb0fdf966cba536676e360dae5c9701e9ecb Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QMouseHandler to use direct syncMike Krus2019-10-013-25/+14
| | | | | Change-Id: Ia3fe8a32ca2f750c866f8df91e53ff0ea4d53dcc Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAxisAccumulator to use direct syncMike Krus2019-10-013-33/+18
| | | | | Change-Id: Ie68ace96dd3367533508c44e5c5ab8c199b81ce9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QKeyboardHandler to use direct syncMike Krus2019-10-013-30/+22
| | | | | Change-Id: I08fdf7d4beccc512f84e70449ed706eab6df7d0b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update device nodes to use direct syncMike Krus2019-10-0112-134/+69
| | | | | Change-Id: Ic93968816b719ff407db1d1f2f67d906fab3ca0a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAxisSetting to use direct syncMike Krus2019-10-013-28/+14
| | | | | Change-Id: Ib8067fe61bb0fc1994a4cdfff912e454a0799d44 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAction to use direct syncingMike Krus2019-10-014-42/+14
| | | | | Change-Id: I097be63cf17bfa322a87900fd8d45bb59bc344a8 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Update QAxis to use direct syncMike Krus2019-09-304-47/+17
| | | | | Change-Id: Id159885d3c3ef4f2582a7b308350c6b43182f521 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Enable direct syncing on input aspectMike Krus2019-09-305-0/+164
| | | | | | | | | 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>
* Merge remote-tracking branch 'origin/5.13' into 5.14Liang Qi2019-09-301-0/+4
|\ | | | | | | | | | | | | Conflicts: src/render/texture/qtexture.cpp Change-Id: Ibc0b8d87c172ea8fac521b2c85d2b2a42c5fc290
| * Reset input axis changes when enabling camera controllerMike Krus2019-09-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | When input axis are enabled or disable, we now reset the value to 0. And enabling or disabling the camera controller, we now do the same for the axis. This prevents residual movement when re-enabling the controller due to the asynchronous updates. Task-number: QTBUG-77996 Change-Id: I5ac016d5b708e1f8d8eaa996bbd28c00c0f05e79 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* | Remove the Aspect ThreadPaul Lemire2019-08-074-35/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This now makes the Qt3D simulation loop run in the Main Thread. In theory having the Aspect Thread allowed Qt3D to continue rendering even if the main thread got locked. In practice however this leads to a large amount of complexities in the Qt3D implementations and provides little value as in most cases blocking the main thread would block animations driven by frontend nodes. Removing the Aspect Thread will allow to remove the backend tree copies each aspect had to make which will allow to reduce memory. In addition, getting direct access to frontend nodes, will now be possible without introducing races which should allow to make more optimizations and reduce latencies on some operations. Change-Id: I80e4cd6427de06ddedfa1bb50d40710b91867b24 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Revert "QWheelEvent: temporarily disable deprecation warnings around x(), y()"Marc Mutz2019-07-311-3/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit d2c52680884095238ec3859fabaad03157af3985. That was a temporary measure to get qt5 integration going. The code has since been ported, so this can now be removed again. Change-Id: I96e0470481ad8744048bef72a45f07a3bb63e2ba Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* | QMouseEvent: port away from deprecated QWheelEvent::x/y()Marc Mutz2019-07-311-2/+2
| | | | | | | | | | | | | | Inline the function's QtBase implementations into the code here. Change-Id: I9e9b8b7612f3ca5dcbff7bb8cd33d3355ea170f5 Reviewed-by: Liang Qi <liang.qi@qt.io>
* | QWheelEvent: temporarily disable deprecation warnings around x(), y()Marc Mutz2019-07-311-0/+3
| | | | | | | | | | | | | | | | | | | | ... in an attempt to unblock qt5 integration. Put the warning suppression macros further apart than necessary to avoid clashing with the actual fix. Change-Id: I362712d1c6b3035966179755cdc6e631d1954255 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* | Eradicate Q_FOREACH loops and mark the module cleanMarc Mutz2019-05-221-3/+0
| | | | | | | | | | | | | | | | | | | | The only noteworth change is where a loop around spy.events modified the container using takeFirst(). There was no reason to do so, so it was changed to use the loop variable instead of the result of taking. Change-Id: I02c62a7c2efc5d042c6e669fe5daddd7da7e85d2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* | Merge remote-tracking branch origin/5.13 into devPaul Lemire2019-04-1534-37/+37
|\| | | | | | | Change-Id: Ib5c04e9941aeea1a4cd27519b94b9a53e8349ea3
| * Switch export macros to standard formKai Koehne2019-04-0234-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | Qt expects the export macros to have Q_ prefixes, otherwise the symbol versioning script won't find them and mark them. Also remove non-exising QT3DLOGIC_PRIVATE_EXPORT macro from src/doc/qt3d.qdocconf Task-number: QTBUG-74752 Change-Id: I71b9e85ff09c002fb283824aa51a5a8f50e937f4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* | Fix MouseEvent/WheelEvent to properly forward all keyboard modifiersPaul Lemire2019-03-062-32/+39
|/ | | | | | | | | | | | | | | | Modifiers was an enum when it should have been a flag. This patch makes the transition toward having a flag. The Modifiers enum is renamed Modifier and the flag is named Modifiers. This might affect BIC but this change is really needed to make the modifiers property of Mouse/Wheel event actually useful. Change-Id: I67e472c3cc2654f8d3e84c6248b8e689c0306530 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Sean Harmer <sean.harmer@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: Add missing dots (qt3d)Paul Wicking2018-06-194-4/+4
| | | | | | Task-number: QTBUG-68933 Change-Id: I4226b8b9d70548b6921948c5ea47520f40f5df98 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>