1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

This takes care of connection sources to the right channels. BUt I have a terribel feeling that I must be duplicating code. This code just has to exist somewhere.

This commit is contained in:
Kjell Kernen 2014-04-04 14:41:09 +02:00
parent 4c6cdd4ed5
commit 63bacf04f8
3 changed files with 12 additions and 2 deletions

View file

@ -56,8 +56,8 @@ void WizMix::addMix(ModelData &model, Input input, int weight, int channel, int
MixData & mix = model.mixData[mixIndex++];
mix.destCh = channel+1;
if (isTaranis){
RawSource tmpSource = settings.getDefaultSource( input-1 );
mix.srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, tmpSource.index, &model);
int source = settings.translateSource(input-1);
mix.srcRaw = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, source, &model);
}
else
mix.srcRaw = RawSource(SOURCE_TYPE_STICK, input-1);