From c4a1dc4c70d4e39eef7657f51989c02635181f87 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 8 Oct 2016 09:38:21 +0200 Subject: [PATCH] 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. --- radio/src/simu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/simu.cpp b/radio/src/simu.cpp index 78d1de519..07c0d6578 100644 --- a/radio/src/simu.cpp +++ b/radio/src/simu.cpp @@ -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; }