summaryrefslogtreecommitdiffstats
path: root/src/input/backend/updateaxisactionjob.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Coding convention fix for Src/inputRobert Brock2017-03-161-0/+1
| | | | | | | | 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>
* Move all axis input logic in the relevant classesKevin Ottens2016-10-291-59/+12
| | | | | | | | | | | 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>
* UpdateAxisActionJob: only perform job if device enabledPaul Lemire2016-08-271-0/+4
| | | | | | Change-Id: Ie5b29563f5e88df6cce14655a0e3fb35fc8de1fa Task-number: QTBUG-55469 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Move input, chord and sequence logic out of jobKevin Ottens2016-08-241-59/+3
| | | | | | | | | | The bookkeeping and activation logic of ActionInput, InputChord and InputSequence now move outside of the job, which make them testable properly. The tests already show bugs which will be fixed in following commits. Change-Id: I4e434118a6ba285d08632c43d487b17ee5b4cb66 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: set profiling type on the jobsPaul Lemire2016-06-281-0/+2
| | | | | Change-Id: I42df9d597fa4d5cd5b4b3d8618fc8195ffbe3e1c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Linear scaling for key controlled axisColin Ogilvie2016-05-121-1/+5
| | | | | Change-Id: I429fc512a836d569a55f0ac6490d020f1e8c2808 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Make QInputDevicePlugin and friends privateKevin Ottens2016-05-021-2/+2
| | | | | | | | | 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-1/+1
| | | | | | Change-Id: If31fe8612c177b3383d63cf5f50c34d088f0d72b Task-number: QTBUG-51474 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Split QAnalogAxisInput out of QAxisInputKevin Ottens2016-05-021-23/+34
| | | | | | | | 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-2/+9
| | | | | | | | | 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-6/+6
| | | | | | Task-number: QTBUG-52736 Change-Id: I58f9cbcdf018e7b672d33dd865067485412b79fe Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* input/backend: eradicate Q_FOREACH loops [low-risk]Marc Mutz2016-04-301-10/+18
| | | | | | | | | | | | | | | | ... 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 ~5.4KiB (1.08%) in text size on optimized GCC 6.0 Linux AMD64 builds. Change-Id: I8be9ac2e0d7a200d9a4a286f06f1da26377e366d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove QAbstractAggregateActionInputPaul Lemire2016-04-151-2/+2
| | | | | | Change-Id: I48109b0149cf16699f5d3a6cafbaec4555d4db0b Task-number: QTBUG-51493 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QActionInput and QAxisInput keys to buttonsRobert Brock2016-02-291-10/+10
| | | | | | | | As per API review renamed keys to buttons as it is more descriptive Change-Id: If0907b382a863d64bd8d86e2796613767a1fd12b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputChord renamed tolerance to timeoutRobert Brock2016-02-291-1/+1
| | | | | | | As per API review Change-Id: Ic2a70ed5b2c47b3545454276c21ec5477b47645b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unify license header usageAntti Kokko2016-01-261-11/+14
| | | | | | | Update old header.LGPL3 to header.LGPL Change-Id: I8eac0cd6bbc276a56df487249cc459c0d4fab165 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Aggregate action functionalityColin Ogilvie2016-01-191-11/+61
| | | | | Change-Id: Iac5e6bfd2ad67b3c1c9a794ea528204eff238d20 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Implement dead zone supportSean Harmer2015-12-161-1/+1
| | | | | Change-Id: Icd5d31ba690484dc310de872be9df3ec9a520c63 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* QAxisInput/QActionInput: use list of int rather than int maskPaul Lemire2015-12-041-6/+5
| | | | | | | Needed to allow devices like keyboards which have more than 64 keys Change-Id: Ia837285ba9c5b7c26d3d89046d7d9f7a4cddb2ba Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Further improve axis/action dispatchPaul Lemire2015-12-041-1/+0
| | | | | Change-Id: I6c6dd6b6c78f1c348ef75f6dae4c68b64ba638b2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Changes to make buttons able to trigger actionsSean Harmer2015-12-041-2/+3
| | | | | | | Needs tidying up and improving to make axes work too. Change-Id: I1be0756396110513f2c3bada634814635fbd95a6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputAspect: launch an axis/action update framePaul Lemire2015-11-301-0/+145
Change-Id: I78038ed7a559647db87be800a8fe2d080da3620c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>