1
0
Fork 0
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:
Arne Schwabe 2016-10-08 09:38:21 +02:00 committed by Bertrand Songis
parent 88e1740422
commit c4a1dc4c70

View file

@ -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;
}