From a3797790c7da7a5c88005735619dc56a96264930 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 17 May 2013 02:23:42 +0200 Subject: add the missing pieces for button support --- liveview/liveview.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'liveview/liveview.cpp') diff --git a/liveview/liveview.cpp b/liveview/liveview.cpp index 58bfb83..f293bd9 100644 --- a/liveview/liveview.cpp +++ b/liveview/liveview.cpp @@ -418,6 +418,21 @@ void LiveView::handleNavigation(const Message &msg) qDebug() << "navigation" << event << item_id << menu_id; switch (event) { + case UpPress: + emit buttonPressed(1); + break; + case DownPress: + emit buttonPressed(2); + break; + case LeftPress: + emit buttonPressed(3); + break; + case RightPress: + emit buttonPressed(4); + break; + case SelectPress: + emit buttonPressed(0); + break; case SelectLongPress: if (_mode == ApplicationMode) { sendResponse(NavigationResponse, ResponseCancel); -- cgit v1.2.3