mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
[simu] Fix keyboard switch controls for X7.
This commit is contained in:
parent
6a52458e15
commit
d6d694a36f
1 changed files with 6 additions and 1 deletions
|
@ -367,7 +367,7 @@ long Open9xSim::onTimeout(FXObject*, FXSelector, void*)
|
|||
if (!rotencAction) ROTARY_ENCODER_NAVIGATION_VALUE += ROTARY_ENCODER_GRANULARITY;
|
||||
rotencAction = true;
|
||||
}
|
||||
else if (getApp()->getKeyState(KEY_W)) {
|
||||
else if (getApp()->getKeyState(KEY_W)) {
|
||||
if (!rotencAction) ROTARY_ENCODER_NAVIGATION_VALUE -= ROTARY_ENCODER_GRANULARITY;
|
||||
rotencAction = true;
|
||||
}
|
||||
|
@ -400,10 +400,15 @@ long Open9xSim::onTimeout(FXObject*, FXSelector, void*)
|
|||
SWITCH_KEY(B, 1, 3);
|
||||
SWITCH_KEY(C, 2, 3);
|
||||
SWITCH_KEY(D, 3, 3);
|
||||
#if defined(PCBX7)
|
||||
SWITCH_KEY(F, 4, 2);
|
||||
SWITCH_KEY(H, 5, 2);
|
||||
#else
|
||||
SWITCH_KEY(E, 4, 3);
|
||||
SWITCH_KEY(F, 5, 2);
|
||||
SWITCH_KEY(G, 6, 3);
|
||||
SWITCH_KEY(H, 7, 2);
|
||||
#endif
|
||||
#else
|
||||
SWITCH_KEY(1, 0, 2);
|
||||
SWITCH_KEY(2, 1, 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue