summaryrefslogtreecommitdiffstats
path: root/src/input
Commit message (Collapse)AuthorAgeFilesLines
* Fix build in C++98 mode: enums aren't namespacesv5.6.0Thiago Macieira2016-03-031-4/+4
| | | | | | | trianglesextractor.cpp:73:28: error: ‘Qt3DRender::QAttribute::DataType’ is not a class or namespace Change-Id: Ic747cc2ab45e4dc6bb70ffff14384407a2997a70 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Doc: Fix documentation macro and other issuesTopi Reinio2016-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QDoc doesn't allow a macro that expands into an empty string: src/core/nodes/qcomponent.cpp:189: warning: Unknown command '\TODO' Linking issues that are fixed by adding a dependency to Qt GUI: src/input/frontend/qkeyevent.cpp:121: warning: Can't link to 'QKeyEvent::nativeScanCode()' src/input/frontend/qkeyevent.cpp:141: warning: Can't link to 'QKeySequence::StandardKey' src/quick3d/quick3d/qquaternionanimation.cpp:42: warning: Can't link to 'QQuaternion' Other fixed warnings: src/input/frontend/qmousecontroller.cpp:54: warning: Unknown command '\intantiates' src/quick3d/quick3d/qquaternionanimation.cpp:42: warning: C++ class Qt3DCore::Quick::QQuaternionAnimation not found src/render/materialsystem/qparametermapping.cpp:85: warning: Undocumented enum item 'UniformBufferObject' Undocumented enum item 'ShaderStorageBufferObject' examples/qt3d/wireframe/doc/src/wireframe.qdoc:28: warning: Can't link to 'BasicCamera' Change-Id: Iea8f591bd09f0b8895dc568a48f2bfe80f2fe73d Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Doc: Exclude private header files from the documentation buildTopi Reinio2016-01-253-12/+0
| | | | | | | | | | | | In the documentation configuration, exclude all '_p.h' files from the documentation build. This prevents QDoc from generating documentation for private classes, and also allows removal of documentation that explicitly set the private classes \internal. Change-Id: I8fcf5c99a2a0b75e9ee5dcd928fa4a2b4b8cf34f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add missing Q_DECL_OVERRIDESergio Martins2016-01-231-1/+1
| | | | | Change-Id: I0165fc4b9a08fc1d56f5338f3c67052875342498 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Doc: Add skeletal doc structure for the QML types of Qt3D Input moduleVenugopal Shivashankar2016-01-2211-4/+183
| | | | | | | Also marked a few private C++ classes as \internal. Change-Id: I32a7da498c97e132f6b6e60d551cc0b7feb52b01 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Make axisIdentifier & buttonIdentifier constBogDan Vatra2016-01-145-10/+10
| | | | | Change-Id: Idedf3cab5d8a30d1a417ceb10555170b53b00d26 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* "cleanup" method needs to be virtual.BogDan Vatra2016-01-121-1/+1
| | | | | Change-Id: I0075adf8b927a29f06be6ab883622b216cca5b44 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add "We mean it" warningSean Harmer2016-01-021-0/+11
| | | | | | Change-Id: I3bcc071091e4d89090393d0b65704bef15bcc342 Reviewed-by: Mike Krus <mike.krus@kdab.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Stop using enum references that require C++11.Raphael Kubo da Costa2015-12-302-27/+27
| | | | | | | | | | | Use Qt::Foo instead of Qt::Enum::Foo, which is a C++11 extension. When building with clang without -std=c++11, this results in warnings. With older GCC versions, the code simply does not build. This is similar to commit deffdaf9 ("GraphicsHelper: fix switch"). Change-Id: I28389b90bafb3df87187742ef55267ce2df1ba1a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Allow device integration impls to see the aspectKevin Ottens2015-12-212-0/+9
| | | | | Change-Id: I257ecd56a454ba7ad969859fad94fc45a8e729c4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Move services() and jobManager() to the pimplKevin Ottens2015-12-171-1/+1
| | | | | | | This way we avoid leaking private types through public API. Change-Id: Ifb30d7e57d8b995bba8cf9a95ae77f8d7818d79a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QInputDeviceIntegration can register backend typesKevin Ottens2015-12-173-2/+24
| | | | | | | | No need to make registerBackendType() public on QInputAspect anymore, it's properly exposed to the QInputDeviceIntegration sub classes only. Change-Id: Ica44e0d37f9e6eecb099d87b0420a7b8bbc6ab59 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Make QInputDeviceIntegration::initialize() saferKevin Ottens2015-12-175-4/+17
| | | | | | | | initialize() is now public and non virtual, only recording the aspect pointer, while doInitialize() is private and pure virtual. Change-Id: Ic68b7b729205d9ec01927e9dc576cab16f53d18e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add missing pimpl to QInputeDeviceIntegrationKevin Ottens2015-12-174-2/+91
| | | | | Change-Id: I87cc1525adf0dc0665affe3797f3be79ae1294b5 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Remove useless reimplementationsKevin Ottens2015-12-162-10/+0
| | | | | Change-Id: I0b19646de41014274674c75650028980076b8349 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Only aspect subclasses register backend typesKevin Ottens2015-12-161-0/+2
| | | | | | | | Also make registerBackendType public on QInputAspect for now since its plugins will also need to register backend types. Change-Id: I7b07162d806b5644daf12f6b22161677f16da38e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Smoothly transition from deadzone by adjusting gradient of responseSean Harmer2015-12-161-2/+25
| | | | | Change-Id: Ibb76111afb7d7ae6fb14aadf2e7225895e45152e Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Implement low pass filtering of axis valuesSean Harmer2015-12-164-7/+38
| | | | | Change-Id: Ie9a7677db6c86cfd51732d0e009e5de6442ee931 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Implement dead zone supportSean Harmer2015-12-169-17/+180
| | | | | Change-Id: Icd5d31ba690484dc310de872be9df3ec9a520c63 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
* Turn all services private for nowKevin Ottens2015-12-122-3/+3
| | | | | Change-Id: I9da605c77c5489b9bef4f07079e05f8babb9559f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Rename Q3D*Event to Q*Event and handle namespaceMike Krus2015-12-1026-197/+196
| | | | | | | | Q3DMouseEvent, Q3DWheelEvent, Q3DKeyEvent Also removed unused variables and fixed some formatting Change-Id: Ie4c531f2084875fe4d8b6ac9bafd2b3c085dead4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Use lists of ints for axes on axis settingsSean Harmer2015-12-094-13/+27
| | | | | Change-Id: Ie1cc4b46f7888f4e9ecdecb0b204c30703da36ee Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Added parameters to signals and made setters Q_SLOTSTomi Korpipää2015-12-0916-51/+58
| | | | | | Change-Id: Icec2f9f207221e35ffdeeb594bb9b4dc6ef890f1 Task-number: QTBUG-49797 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add sensitivity property to QMouseControllerSean Harmer2015-12-075-4/+47
| | | | | | | | | | | | | | The sensitivity is defined as the recipricol of the number of pixels the mouse is required to move to obtain the extreme axis value (-1 or +1). That is if you set it to 0.1 you need to move the mouse 10 pixels to get an axis value of magnitude 1. If it is 0.01, 100 pixels gives an axis value of magnitude 1. The user is responsible for applying any additional transformations in a suitable handler. Change-Id: I51cd28a17d4fc0b8461ac3e49efb26b2c66081b3 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* MouseController: various fixesPaul Lemire2015-12-074-10/+26
| | | | | Change-Id: Ie6f90a8b0ffca4a20b90edebb70b41a210246d2a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* KeyboardController: fix PageUp positionPaul Lemire2015-12-071-1/+1
| | | | | Change-Id: Icc2c30ba030285da45dd8631210990b9b7a6d718 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: fix, event filters can't be registered with the same priorityPaul Lemire2015-12-071-2/+2
| | | | | Change-Id: I74609baa9f39bc741b67e27b0a9a74ad65fe5cca Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QMouseController: converted to QAbstractPhysicalDevicePaul Lemire2015-12-077-15/+138
| | | | | Change-Id: I532e7378fe459ec201629b3ec3f0c9a69acf691f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Input: make KeyboardController a physical devicePaul Lemire2015-12-0711-13/+910
| | | | | Change-Id: I8b3de65348006fda1156adc9b55744055eef969c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAxisInput/QActionInput: use list of int rather than int maskPaul Lemire2015-12-049-31/+53
| | | | | | | Needed to allow devices like keyboards which have more than 64 keys Change-Id: Ia837285ba9c5b7c26d3d89046d7d9f7a4cddb2ba Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAbstractPhysicalDevice: Remove axis/buttons methodsPaul Lemire2015-12-041-3/+0
| | | | | | | They do not need to be on the frontend node Change-Id: I16cd5ad9a2d556916a3d8f4e6856eddf00fb7d3e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* AxisActionHandlerJob: use better names for better understandingPaul Lemire2015-12-044-20/+21
| | | | | Change-Id: I434148d7d0b2d8e7ee31d145fda08f5c561a4c40 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Further improve axis/action dispatchPaul Lemire2015-12-047-60/+122
| | | | | Change-Id: I6c6dd6b6c78f1c348ef75f6dae4c68b64ba638b2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Changes to make buttons able to trigger actionsSean Harmer2015-12-044-3/+24
| | | | | | | Needs tidying up and improving to make axes work too. Change-Id: I1be0756396110513f2c3bada634814635fbd95a6 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Transmit axis/action updates to QAxisActionHandlerPaul Lemire2015-12-049-14/+371
| | | | | Change-Id: I4d1fbc3e06ff649ef73cb6a3f2458a8147a7151d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Store vector of active AxisActionHandlersPaul Lemire2015-12-044-4/+59
| | | | | Change-Id: I33fb52391936d8f19757351aded8b1dae662fee3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* QAxisActionHandler: make ctor explicitPaul Lemire2015-12-041-1/+1
| | | | | Change-Id: I4d2ed6a94e69783b5f2865459ad948b7fc1bdef1 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add backend class for axis-action handlerSean Harmer2015-12-048-2/+181
| | | | | | | And do usual registration. Change-Id: I8d1ceadda1138e3bb298e95a6d0f8a635188595e Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add signal and normalise signatures in QAxisActionHandlerSean Harmer2015-12-041-2/+3
| | | | | Change-Id: I27c854f56b9f3f2eee2f7ba7f60e480dc67c7491 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Rename QActionHandler to QAxisActionhandlerSean Harmer2015-12-044-28/+28
| | | | | | | No need to have two classes for the handlers. Change-Id: Ia174502f21b5392179774ce8e0d8f2cd228a7ea6 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Store logical device in QActionHandlerSean Harmer2015-12-043-19/+5
| | | | | Change-Id: I6bd53c04460df463d93e91c6b2ae94a2e68a98d7 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add started() and finished() signals to QActionSean Harmer2015-12-041-0/+3
| | | | | Change-Id: I809e634ccdb9f41861b4e44ea58af03525ff4c44 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Store logical device in QActionHandlerSean Harmer2015-12-043-4/+46
| | | | | Change-Id: Iab92eb3974c335a16b01cb1455ddd219c36490cd Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add QActionHandler frontend classSean Harmer2015-12-044-2/+227
| | | | | | | Still need all the dynamic signal handler magic adding to it. Change-Id: I8bc49f46c09bee7d9153c007fc224e314a4d02ce Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Factor out in QAbstractAspect common behaviorKevin Ottens2015-12-032-35/+0
| | | | | | | | There was code involving the node visitor duplicated in several aspect, move that logic back into their common base class: QAbstractAspect. Change-Id: I47320e93691edb43e3cccdd81753423816ad955d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Unit tests for AxisInputPaul Lemire2015-12-011-2/+2
| | | | | Change-Id: Ib639eec6cfaa3839f43e09e9dd3ad31f0524e700 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* AxisInput export for unit testsPaul Lemire2015-12-011-3/+1
| | | | | Change-Id: I7df4bc7839e3e697983917bbe860307aa0ab6882 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* ActionInput export for unit testsPaul Lemire2015-12-011-3/+1
| | | | | Change-Id: I07f0a6c6c5e4e509cbb508840342ba307a61c54e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Action export for unit testingPaul Lemire2015-12-011-3/+2
| | | | | Change-Id: I1823b27a449d4d3095734b73090ddd4c365bb503 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Axis export for unit testingPaul Lemire2015-12-011-3/+2
| | | | | Change-Id: Iefdc7b0f63c90d24b9e12837ffdfbde0a6794801 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>