playback recording back through the standard inputs

This commit is contained in:
Dante Ruiz 2017-06-01 18:51:24 +01:00
parent a1e0737928
commit e52765b641
3 changed files with 1 additions and 5 deletions
libraries/controllers/src/controllers

View file

@ -332,7 +332,7 @@ QString UserInputMapper::getActionName(Action action) const {
QString UserInputMapper::getStandardPoseName(uint16_t pose) {
Locker locker(_lock);
for (auto posePair : getStandardInputs()) {
if (posePair.first.channel == pose) {
if (posePair.first.channel == pose && posePair.first.getType() == ChannelType::POSE) {
return posePair.second;
}
}

View file

@ -36,9 +36,6 @@ void ActionEndpoint::apply(const Pose& value, const Pointer& source) {
auto userInputMapper = DependencyManager::get<UserInputMapper>();
QString actionName = userInputMapper->getActionName(Action(_input.getChannel()));
inputRecorder->setActionState(actionName, _currentPose);
if (inputRecorder->isPlayingback()) {
//_currentPose = inputRecorder->getPoseState(actionName);
}
if (!_currentPose.isValid()) {
return;

View file

@ -49,7 +49,6 @@ public:
if (inputRecorder->isPlayingback()) {
auto userInputMapper = DependencyManager::get<UserInputMapper>();
QString actionName = userInputMapper->getStandardPoseName(_input.getChannel());
qDebug() << actionName;
return inputRecorder->getPoseState(actionName);
}
return VirtualEndpoint::pose();