feat: WASM modules based simulation in Companion (#6435)

This commit is contained in:
Raphael Coeffic
2026-03-20 12:19:17 +10:00
committed by GitHub
parent 5f8a38bb18
commit 04a2231aee
80 changed files with 3126 additions and 2220 deletions
+5 -3
View File
@@ -92,6 +92,7 @@ bool GeneralSettings::isInputAvailable(int index) const
const InputConfig &config = inputConfig[index];
return (config.type == Board::AIT_STICK ||
config.type == Board::AIT_LUX ||
(config.type == Board::AIT_FLEX && config.flexType != Board::FLEX_NONE));
}
@@ -124,10 +125,11 @@ bool GeneralSettings::isInputPot(int index) const
if (isInputAvailable(index)) {
const InputConfig &config = inputConfig[index];
return (config.type == Board::AIT_FLEX &&
return (config.type == Board::AIT_LUX ||
(config.type == Board::AIT_FLEX &&
(config.flexType == Board::FLEX_POT ||
config.flexType == Board::FLEX_POT_CENTER ||
config.flexType == Board::FLEX_MULTIPOS));
config.flexType == Board::FLEX_MULTIPOS)));
}
return false;
@@ -227,7 +229,7 @@ void GeneralSettings::init()
backlightOffBright = IS_FAMILY_HORUS_OR_T16(board) ? 20 : 0;
backgroundVolume = 1;
speakerVolume = 12;
speakerVolume = 0;
wavVolume = 2;
hatsMode = HATSMODE_SWITCHABLE;