Added media keys (Previous, Next, Play/Pause) to the handling. Help window updated accordingly.

pull/31/head
Parker Reed 2018-03-06 12:24:02 -05:00
parent 5e57bccc43
commit 1af06dae16
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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]");