mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 19:40:20 +03:00
Add 'Z' as key to the rotary encoder emulation (#3881)
This helps us people with non AZERTY keyboards that have Z left to the X. Doesn't help German layouts with 'Y' next to 'X' but that key is already used as trim key.
This commit is contained in:
parent
88e1740422
commit
c4a1dc4c70
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,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) || getApp()->getKeyState(KEY_Z)) {
|
||||
if (!rotencAction) ROTARY_ENCODER_NAVIGATION_VALUE -= ROTARY_ENCODER_GRANULARITY;
|
||||
rotencAction = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue