First working implementation of Inputs Mapping

Management of inputs in Control, Management of callbacks creator per input in Source, Saving and Loading in Session, Unified renaming of SourceCallbacks, User interface window for creating and editing input mapping from Keyboard and Numerical keypad, with appropriate Settings.
This commit is contained in:
Bruno Herbelin
2022-02-06 00:36:05 +01:00
parent 8404e0f670
commit ab040f5268
23 changed files with 1054 additions and 291 deletions

View File

@@ -1175,7 +1175,7 @@ void Mixer::merge(SessionSource *source)
SourceList::iterator it = to_be_moved.begin();
for (; it != to_be_moved.end(); ++it) {
float scale_depth = (MAX_DEPTH-(*it)->depth()) / (MAX_DEPTH-next_depth);
(*it)->call( new GotoDepth( (*it)->depth() + scale_depth ) );
(*it)->call( new SetDepth( (*it)->depth() + scale_depth ) );
}
}
}
@@ -1187,10 +1187,10 @@ void Mixer::merge(SessionSource *source)
renameSource(s);
// scale alpha
s->call( new GotoAlpha(s->alpha() * source->alpha()));
s->call( new SetAlpha(s->alpha() * source->alpha()));
// set depth (proportional to depth of s, adjusted by needed space)
s->call( new GotoDepth( target_depth + ( (s->depth()-start_depth)/ need_depth) ) );
s->call( new SetDepth( target_depth + ( (s->depth()-start_depth)/ need_depth) ) );
// set location
// a. transform of node to import