Commit dde235d9 authored by Ed Rogalsky's avatar Ed Rogalsky Committed by Vincent PINON

jogshuttle: debug info added

parent 76808ad4
......@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <klocalizedstring.h>
#include <KDebug>
// TODO(fleury): this should probably be a user configuration parameter (at least the max speed).
//const double SPEEDS[] = {0.0, 0.5, 1.0, 2.0, 4.0, 8.0, 16.0, 32.0};
......@@ -66,8 +67,10 @@ void JogShuttleAction::slotShuttlePos(int shuttle_pos)
if (magnitude < SPEEDS_SIZE) {
if (shuttle_pos < 0)
emit rewind(-SPEEDS[magnitude]);
if (shuttle_pos == 0)
if (shuttle_pos == 0) {
//kDebug() << "Shuttle pos0 action: " << m_actionMap[0];
emit action(m_actionMap[0]);
}
if (shuttle_pos > 0)
emit forward(SPEEDS[magnitude]);
}
......@@ -80,7 +83,7 @@ void JogShuttleAction::slotButton(int button_id)
fprintf(stderr, "Button %d has no action\n", button_id);
return;
}
//fprintf(stderr, "Button #%d maps to action '%s'\n", button_id, m_actionMap[button_id].toAscii().constData()); //DBG
//kDebug() << "Shuttle button =" << button_id << ": action=" << m_actionMap[button_id];
emit action(m_actionMap[button_id]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment