diff options
Diffstat (limited to 'examples/custominput/custominputhandler.cpp')
-rw-r--r-- | examples/custominput/custominputhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/custominput/custominputhandler.cpp b/examples/custominput/custominputhandler.cpp index dad7c851..3b050fda 100644 --- a/examples/custominput/custominputhandler.cpp +++ b/examples/custominput/custominputhandler.cpp @@ -25,11 +25,15 @@ CustomInputHandler::CustomInputHandler(QObject *parent) : { } +//! [0] void CustomInputHandler::mouseMoveEvent(QMouseEvent *event, const QPoint &mousePos) { + Q_UNUSED(event) setInputPosition(mousePos); } +//! [0] +//! [1] void CustomInputHandler::wheelEvent(QWheelEvent *event) { // Adjust zoom level based on what zoom range we're in. @@ -47,3 +51,4 @@ void CustomInputHandler::wheelEvent(QWheelEvent *event) scene()->activeCamera()->setZoomLevel(zoomLevel); } +//! [1] |