summaryrefslogtreecommitdiff
path: root/liveview/liveview.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-17 02:23:42 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-17 02:23:42 +0200
commita3797790c7da7a5c88005735619dc56a96264930 (patch)
tree31c72d30c6240e039946e0cce77daf739db7a7ea /liveview/liveview.cpp
parent8acbca729c2bca966c0e4b91701654532af2f55c (diff)
downloadsowatch-a3797790c7da7a5c88005735619dc56a96264930.tar.gz
sowatch-a3797790c7da7a5c88005735619dc56a96264930.zip
add the missing pieces for button support
Diffstat (limited to 'liveview/liveview.cpp')
-rw-r--r--liveview/liveview.cpp15
1 files changed, 15 insertions, 0 deletions
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);