WasdController: use input handlers
Eat our own dog food (follow our own recommendations), and use input handlers rather than MouseArea. The downside is that WasdController cannot be a child inside the DemonView, but must be made as a sibling for a yet unknown reason. The upshot is that the application can combine WasdController with other kinds of input, like a separate tap handler for shooting. In addition: - No reason to have a view property. The WasdController can be made a sibling to the DemonView (or eventually, a child), or the parent property can be set directly. - status object can be a QtObject rather than an item.
Showing
- examples/quick3d/wasdcamera/TestScene.qml 1 addition, 0 deletionsexamples/quick3d/wasdcamera/TestScene.qml
- examples/quick3d/wasdcamera/main.qml 6 additions, 8 deletionsexamples/quick3d/wasdcamera/main.qml
- src/imports/demonhelpers/WasdController.qml 48 additions, 48 deletionssrc/imports/demonhelpers/WasdController.qml
Please register or sign in to comment