Skip to content

Commit

Permalink
Merge pull request #31 from parkerlreed/development
Browse files Browse the repository at this point in the history
Added media keys (Previous, Next, Play/Pause) to the handling
  • Loading branch information
Michal Szwaj authored Mar 6, 2018
2 parents 5e57bcc + 1af06da commit f46ab5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/autoapp/Projection/InputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,17 @@ bool InputDevice::handleKeyEvent(QEvent* event, QKeyEvent* key)
buttonCode = aasdk::proto::enums::ButtonCode::PAUSE;
break;

case Qt::Key_MediaPrevious:
case Qt::Key_V:
buttonCode = aasdk::proto::enums::ButtonCode::PREV;
break;

case Qt::Key_MediaPlay:
case Qt::Key_B:
buttonCode = aasdk::proto::enums::ButtonCode::TOGGLE_PLAY;
break;

case Qt::Key_MediaNext:
case Qt::Key_N:
buttonCode = aasdk::proto::enums::ButtonCode::NEXT;
break;
Expand Down
6 changes: 3 additions & 3 deletions src/autoapp/UI/SettingsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ void SettingsWindow::onShowBindings()
+ QString("Call end -> [O] \n")
+ QString("Play -> [X] \n")
+ QString("Pause -> [C] \n")
+ QString("Previous track -> [V] \n")
+ QString("Next track -> [N] \n")
+ QString("Toggle play -> [B] \n")
+ QString("Previous track -> [V]/[Media Previous] \n")
+ QString("Next track -> [N]/[Media Next] \n")
+ QString("Toggle play -> [B]/[Media Play] \n")
+ QString("Voice command -> [M] \n")
+ QString("Wheel left -> [1] \n")
+ QString("Wheel right -> [2]");
Expand Down

0 comments on commit f46ab5b

Please sign in to comment.