mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:57:00 +02:00
playback recording back through the standard inputs
This commit is contained in:
parent
a1e0737928
commit
e52765b641
3 changed files with 1 additions and 5 deletions
|
@ -332,7 +332,7 @@ QString UserInputMapper::getActionName(Action action) const {
|
||||||
QString UserInputMapper::getStandardPoseName(uint16_t pose) {
|
QString UserInputMapper::getStandardPoseName(uint16_t pose) {
|
||||||
Locker locker(_lock);
|
Locker locker(_lock);
|
||||||
for (auto posePair : getStandardInputs()) {
|
for (auto posePair : getStandardInputs()) {
|
||||||
if (posePair.first.channel == pose) {
|
if (posePair.first.channel == pose && posePair.first.getType() == ChannelType::POSE) {
|
||||||
return posePair.second;
|
return posePair.second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,6 @@ void ActionEndpoint::apply(const Pose& value, const Pointer& source) {
|
||||||
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||||
QString actionName = userInputMapper->getActionName(Action(_input.getChannel()));
|
QString actionName = userInputMapper->getActionName(Action(_input.getChannel()));
|
||||||
inputRecorder->setActionState(actionName, _currentPose);
|
inputRecorder->setActionState(actionName, _currentPose);
|
||||||
if (inputRecorder->isPlayingback()) {
|
|
||||||
//_currentPose = inputRecorder->getPoseState(actionName);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_currentPose.isValid()) {
|
if (!_currentPose.isValid()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -49,7 +49,6 @@ public:
|
||||||
if (inputRecorder->isPlayingback()) {
|
if (inputRecorder->isPlayingback()) {
|
||||||
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
auto userInputMapper = DependencyManager::get<UserInputMapper>();
|
||||||
QString actionName = userInputMapper->getStandardPoseName(_input.getChannel());
|
QString actionName = userInputMapper->getStandardPoseName(_input.getChannel());
|
||||||
qDebug() << actionName;
|
|
||||||
return inputRecorder->getPoseState(actionName);
|
return inputRecorder->getPoseState(actionName);
|
||||||
}
|
}
|
||||||
return VirtualEndpoint::pose();
|
return VirtualEndpoint::pose();
|
||||||
|
|
Loading…
Reference in a new issue