Xlite simu shift working, dirty hack to get mouse wheel to do the right thing

This commit is contained in:
Kilrah
2018-05-22 23:09:32 +02:00
parent 31073fc0a9
commit a1de19c105
3 changed files with 9 additions and 2 deletions
@@ -280,10 +280,17 @@ void OpenTxSimulator::rotaryEncoderEvent(int steps)
#else
// TODO : this should probably be handled in the GUI
int key;
#if defined(PCBXLITE)
if (steps > 0)
key = KEY_DOWN;
else if (steps < 0)
key = KEY_UP;
#else
if (steps > 0)
key = KEY_MINUS;
else if (steps < 0)
key = KEY_PLUS;
#endif
else
// Should not happen but Clang complains that key is unset otherwise
return;