summaryrefslogtreecommitdiffstats
path: root/tests/auto/input
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated classes and functionsPaul Lemire2020-02-1121-638/+101
| | | | | | | Mostly old messaging API Change-Id: I17eb2206b2ede56d2f7d36375d5e711d6149019f Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Merge remote-tracking branch 5.15 into devMike Krus2020-02-0717-21/+220
|\ | | | | | | Change-Id: I731aa986e1cc45b3af920db1a23f256927beecf7
| * QMouseDevice: add updateAxesContinuously propertyPaul Lemire2020-01-282-4/+114
| | | | | | | | | | | | | | | | | | | | | | 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>
| * QMouseEvent: fix BIC issue following Modifier/Modifiers changePaul Lemire2019-10-223-1/+106
| | | | | | | | | | | | | | | | | | 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>
| * Clean up old property update codeMike Krus2019-10-2012-16/+0
| | | | | | | | | | | | | | Remove useless includes, clear up commented out or unused code Change-Id: Id3382b16108d79f1e2522d43463c8d70aef8fcb2 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-10-1926-587/+246
|\| | | | | | | Change-Id: I45be7ae8399e3b27d1ac55ccfed2fa42a872ac23
| * Update LoadProxyDeviceJob to use direct syncMike Krus2019-10-114-57/+6
| | | | | | | | | | Change-Id: I6d49abd28a665f89096ec2baaa861490c071d3d3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update AxisAccumulatorJob to use direct syncMike Krus2019-10-112-79/+0
| | | | | | | | | | Change-Id: I4e64fa9f94dad1392b80851c2a6d8d4e013147f7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update UpdateAxisActionJob to use direct syncMike Krus2019-10-094-99/+1
| | | | | | | | | | Change-Id: I227e1a5005a9001ac49d8b29daeb23be25fda53b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Clean up includesMike Krus2019-10-0117-41/+4
| | | | | | | | | | | | | | | | | | 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 QPhysicalDeviceProxy to use direct syncMike Krus2019-10-012-6/+6
| | | | | | | | | | Change-Id: I0126310365663ae1be1d1cb8ebd4a896a5712c4a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update QLogicalDevice to use direct syncMike Krus2019-10-012-55/+38
| | | | | | | | | | Change-Id: I6e176c19ceda3ca1c0bf03da4d78fe92ec3344a7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update input action classes to use direct syncMike Krus2019-10-013-79/+65
| | | | | | | | | | Change-Id: I6126a9b51e5d681ad312bf1df5ca694c6d712294 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update Axis Input classes to use direct syncMike Krus2019-10-014-69/+49
| | | | | | | | | | Change-Id: I22b0bb0fdf966cba536676e360dae5c9701e9ecb Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update QAxisAccumulator to use direct syncMike Krus2019-10-012-22/+15
| | | | | | | | | | Change-Id: Ie68ace96dd3367533508c44e5c5ab8c199b81ce9 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update QKeyboardHandler to use direct syncMike Krus2019-10-011-24/+19
| | | | | | | | | | Change-Id: I08fdf7d4beccc512f84e70449ed706eab6df7d0b Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update device nodes to use direct syncMike Krus2019-10-012-29/+23
| | | | | | | | | | Change-Id: Ic93968816b719ff407db1d1f2f67d906fab3ca0a Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update QAxisSetting to use direct syncMike Krus2019-10-011-2/+2
| | | | | | | | | | Change-Id: Ib8067fe61bb0fc1994a4cdfff912e454a0799d44 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
| * Update QAction to use direct syncingMike Krus2019-10-012-25/+18
| | | | | | | | | | Change-Id: I097be63cf17bfa322a87900fd8d45bb59bc344a8 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* | Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-10-122-25/+18
|\| | | | | | | Change-Id: Iccba3193d6b7064f0cc04124e495dd36a2f19bcb
| * Update QAxis to use direct syncMike Krus2019-09-302-25/+18
| | | | | | | | | | Change-Id: Id159885d3c3ef4f2582a7b308350c6b43182f521 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* | Remove usages of deprecated APIsSona Kurazyan2019-09-101-15/+23
|/ | | | | | | | | | | | - Replaced the deprecated constructors of QWheelEvent with the non-deprecated one. - Fixed the docs of deprecated APIs to compile conditionally, only when those APIs are enabled. Task-number: QTBUG-76491 Change-Id: Id45b3f0dd2720d901c808fc69adbafb80e096fac Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Use sync method when initializing new backend nodesMike Krus2019-08-291-1/+0
| | | | | | | | | | | If the node type supports syncing, use that rather than the creation message. The message is still needed since that is passed to the instantiation functor (none of qt3d's classes appear to use anything but the node id, but can't be sure no other classes do, and can't add other virtual method without breaking BC). Change-Id: Id99f448070b8722a7809b968798772c9eb3c8397 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Do direct notification of backend nodeswip/refactorMike Krus2019-08-287-119/+50
| | | | | | | | | | | | | | | | | Since aspect manager is now on main thread, we can directly update backend nodes safely. Track nodes which have changed properties and notify the backend nodes as part of the frame loop. This avoid allocating and delivering many change messages. To follow: - implement on all nodes - look at backend to frontend syncing - figure out what to do with non property messages (components added/removed, commands, ...) Change-Id: Ia0c442b0528e728c4324d168200bae021bc29266 Reviewed-by: Mike Krus <mike.krus@kdab.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Replace Q_DECL_FINAL with finalKevin Funk2017-09-252-20/+20
| | | | | Change-Id: Ia80d1cb9cc96d76f8b367caa725c59a70ae0a4d5 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Replace Q_DECL_OVERRIDE with overrideKevin Funk2017-09-254-16/+16
| | | | | Change-Id: I92c955068e233c50043ad7d06a32300dd386c24d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Use QSharedPointer::create() moreMarc Mutz2017-07-2211-22/+22
| | | | | | | | | | This is the result of running the (experimental) clang-tidy check qt-modernize-qsharedpointer-create Discarded changes: none. Change-Id: Ic6368521ebf5841267ffe7917cc652627f7b26a7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Deliver all events by default unless marked as intermediateSean Harmer2017-02-094-8/+0
| | | | | | | | | | This change inverts m_final flag on property change events so that now, all events are delivered by default. The animation aspect now marks intermediate calculated changes and these are not delivered unless the user subscribes to them. Change-Id: Ide6c30b29a91ed874d47c52d0ee1352f6680c3d8 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* Set the final flag on scene changes coming from the backendPaul Lemire2017-01-264-0/+11
| | | | | | | This fixes a regression introduced by the patch introducing property tracking. Change-Id: Ib2e41183ea1ff389e6bad97cfa308311ee024541 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add plumbing and process AxisAccumulators each frameSean Harmer2016-12-075-1/+235
| | | | | Change-Id: I91a0f9384c7ef2ba642db1a2becdba1d2e374d87 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Add backend class for AxisAccumulator and testsSean Harmer2016-12-073-1/+214
| | | | | Change-Id: I2d6071c11054eff7d5a574ce3a3dba54dd9bad12 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Add unit tests for Input::UtilsPaul Lemire2016-11-193-1/+241
| | | | | Change-Id: I5efe9a3db29732d169023ef8ccb435837c1ff3d1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* PhysicalDeviceProxy: store id of loaded devicePaul Lemire2016-11-191-0/+4
| | | | | Change-Id: I467129355475cdf114ff7003708023c029eb73bc Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for mouse devicePaul Lemire2016-11-193-1/+266
| | | | | Change-Id: Ia2ce8065c9018b9b3548adfc25233c346a5a3ea1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add unit tests for QMouseDevicePaul Lemire2016-11-193-1/+204
| | | | | Change-Id: Id16d236a082509fdeaf1c5e7c61ea3a72b80ef63 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input testdevice: add missing include guardsPaul Lemire2016-11-181-0/+5
| | | | | Change-Id: Ib52d0656f1d9f813bfac1914229eb133b1aafdc2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add unit tests for LoadProxyDeviceJobPaul Lemire2016-11-183-1/+199
| | | | | Change-Id: Ib943114be4c8da83d5fcd4af22e89b7e2d54b970 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input tests common: specify proxy device namePaul Lemire2016-11-181-4/+4
| | | | | Change-Id: I93dd13a00f891b5effc7dd1f0909626e95d7a98f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add unit tests for PhysicalDeviceProxyPaul Lemire2016-11-183-1/+164
| | | | | Change-Id: I1a5583747f7c8620ec9734d409333f498dccce74 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Tests: move TestArbiter into core commonPaul Lemire2016-11-1811-11/+4
| | | | | | | | As it doesn't make sense to have it in render when mutliple submodules need that for their tests Change-Id: I853ca15a87051e4f63bfd7a24dae5e82014589b8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add unit tests for QAbstractPhysicalDeviceProxyPaul Lemire2016-11-185-2/+290
| | | | | Change-Id: I5652f532503dd7c637bdc10c2af83c444ea6be23 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* LogicalDevice: add unit testsPaul Lemire2016-11-183-1/+201
| | | | | Change-Id: Ia0490f8df8eee4f46d6e8cfbea629faee40553a4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* ButtonAxisInput shouldn't process when disabledKevin Ottens2016-10-291-0/+42
| | | | | Change-Id: Ied847a448993507d2ad7c08c1ddf6ab85459b8d3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* AnalogAxisInput shouldn't process when disabledKevin Ottens2016-10-291-0/+35
| | | | | Change-Id: I1ad3e0f77b27b9309e879e7171512845e7a3eac9 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Axes shouldn't change value when disabledKevin Ottens2016-10-291-0/+17
| | | | | Change-Id: Ia15bc6c1b662e958acd74f8f782c2507212d6d63 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* InputSequences shouldn't process when disabledKevin Ottens2016-10-291-0/+47
| | | | | Change-Id: I4934111b506e1ce8c8950f084501e6d9ae61c913 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* InputChords shouldn't process when disabledKevin Ottens2016-10-291-0/+39
| | | | | Change-Id: I5d087edb422ed45d1a51d07b4e52aba084451a9b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* ActionInputs shouldn't process when disabledKevin Ottens2016-10-291-0/+24
| | | | | Change-Id: I93b6a1416cd97bbc492c69e279dfdb6c62e285f9 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Actions should not activate when disabledKevin Ottens2016-10-291-0/+17
| | | | | Change-Id: Ia8bbe882ea5c6a0783aea5eab47dc4c25169f749 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move all axis input logic in the relevant classesKevin Ottens2016-10-293-13/+73
| | | | | | | | | | | This allows to align how we do things with a similar approach than the one we use for the action inputs. All the processing for axis inputs which was happening in UpdateAxisActionJob now happens in AnalogAxisInput and ButtonAxisInput respectively. Makes the whole thing more testable in return. Change-Id: Ib24442b9983ae1736c287cd98c99ff2c04c1f807 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>