Merge pull request #2445 from opentx/projectkk2glider/issue_2444_9XE_simu_keys

Fixes #2444: Wrong scroll direction in simulators for X9E
This commit is contained in:
Bertrand Songis
2015-07-09 22:24:14 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ void menuChannelsView(uint8_t event);
#define LABEL(...) (uint8_t)-1
#if defined(REV9E)
#if defined(REV9E) && !defined(SIMU)
#define KEY_MOVE_UP KEY_MINUS
#define KEY_MOVE_DOWN KEY_PLUS
#define CURSOR_MOVED_LEFT(event) (EVT_KEY_MASK(event) == KEY_MINUS)
+1 -1
View File
@@ -197,7 +197,7 @@ enum EnumKeys {
#define IS_ROTARY_EVENT(evt) (0)
#define CASE_EVT_ROTARY_BREAK /*case EVT_KEY_BREAK(KEY_ENTER):*/
#define CASE_EVT_ROTARY_LONG /*case EVT_KEY_LONG(KEY_ENTER):*/
#if defined(REV9E)
#if defined(REV9E) && !defined(SIMU)
#define CASE_EVT_ROTARY_LEFT case EVT_KEY_FIRST(KEY_MOVE_UP): case EVT_KEY_REPT(KEY_MOVE_UP):
#define CASE_EVT_ROTARY_RIGHT case EVT_KEY_FIRST(KEY_MOVE_DOWN): case EVT_KEY_REPT(KEY_MOVE_DOWN):
#else