New Source Callbacks for Play control )fast forward, seek, etc.)

2 new callbacks (PlayFastForward, PlaySpeed), modified Seek callback to take target time in seconds (instead of ratio of duration). Integrating this in Input Mapping GUI and Session saving.
This commit is contained in:
Bruno Herbelin
2023-02-19 01:05:52 +01:00
parent d25c17342b
commit 1590251dad
13 changed files with 311 additions and 42 deletions

View File

@@ -1383,6 +1383,17 @@ void SessionLoader::visit (Play &c)
c.setBidirectional(b);
}
void SessionLoader::visit (PlayFastForward &c)
{
float d = 0.f;
xmlCurrent_->QueryFloatAttribute("step", &d);
c.setValue(d);
d = 0.f;
xmlCurrent_->QueryFloatAttribute("duration", &d);
c.setDuration(d);
}
void SessionLoader::visit (SetAlpha &c)
{
float a = 0.f;