| 63 | } |
| 64 | |
| 65 | int KeyTool::processKeyEvent(QKeyEvent* event, rviz_common::RenderPanel* panel) |
| 66 | { |
| 67 | // move forward / backward |
| 68 | switch (event->key()) |
| 69 | { |
| 70 | case Qt::Key_0: |
| 71 | remote_reciever_.publishNext(); |
| 72 | return 1; |
| 73 | case Qt::Key_1: |
| 74 | remote_reciever_.publishContinue(); |
| 75 | return 1; |
| 76 | case Qt::Key_2: |
| 77 | remote_reciever_.publishBreak(); |
| 78 | return 1; |
| 79 | case Qt::Key_3: |
| 80 | remote_reciever_.publishStop(); |
| 81 | return 1; |
| 82 | } |
| 83 | |
| 84 | return move_tool_.processKeyEvent(event, panel); |
| 85 | } |
| 86 | |
| 87 | int KeyTool::processMouseEvent(rviz_common::ViewportMouseEvent& event) |
| 88 | { |
nothing calls this directly
no test coverage detected