From 80262ce2cb56a8f86c0747070a9ed3398a0c3c7d Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Wed, 12 Nov 2014 12:07:12 +0100 Subject: KeyboardController: empty requestFocusForInput method Will be completed in a follow up patch. Change-Id: I487100de5604f9d7f09469e029a5db52fb5a318a Reviewed-by: Sean Harmer --- src/input/keyboardcontroller.cpp | 8 ++++++++ src/input/keyboardcontroller_p.h | 1 + 2 files changed, 9 insertions(+) (limited to 'src/input') diff --git a/src/input/keyboardcontroller.cpp b/src/input/keyboardcontroller.cpp index 65b6a47c8..a4ead52bc 100644 --- a/src/input/keyboardcontroller.cpp +++ b/src/input/keyboardcontroller.cpp @@ -61,6 +61,14 @@ void KeyboardController::updateFromPeer(QNode *) { } +void KeyboardController::requestFocusForInput(const QNodeUuid &inputId) +{ + Q_UNUSED(inputId); + // Saves the last inputId, this will then be used in an Aspect Job to determine which + // input will have the focus. This in turn will call KeyboardInput::setFocus which will + // decide if sending a notification to the frontend is necessary +} + void KeyboardController::sceneChangeEvent(const QSceneChangePtr &) { } diff --git a/src/input/keyboardcontroller_p.h b/src/input/keyboardcontroller_p.h index 0c9a61f64..513d323f3 100644 --- a/src/input/keyboardcontroller_p.h +++ b/src/input/keyboardcontroller_p.h @@ -58,6 +58,7 @@ class KeyboardController : public QBackendNode public: KeyboardController(); void updateFromPeer(QNode *peer) Q_DECL_OVERRIDE; + void requestFocusForInput(const QNodeUuid &inputId); protected: void sceneChangeEvent(const QSceneChangePtr &) Q_DECL_OVERRIDE; -- cgit v1.2.3