1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 03:49:52 +03:00

Buttons for trims T5 and T6 were not working in simu (fix #7167) (#7243)

Buttons for trims T5 and T6 were not working in simu (fix #7167)
This commit is contained in:
Andre Bernet 2020-01-03 12:16:26 +01:00 committed by Bertrand Songis
parent 3e4c67b273
commit abc70f1a5a
3 changed files with 12 additions and 12 deletions

View file

@ -297,7 +297,7 @@ void OpenTxSim::updateKeysAndSwitches(bool start)
static FXuint trimKeys[] = { KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6, KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12 };
#endif
for (unsigned i=0; i<2*NUM_TRIMS; i++) {
for (unsigned i=0; i<NUM_TRIMS_KEYS; i++) {
simuSetTrim(i, getApp()->getKeyState(trimKeys[i]));
}