Allow TOUCH_BUTTONS to be swapped (#15100)

This commit is contained in:
Robby Candra
2019-09-05 01:13:05 +07:00
committed by Scott Lahteine
parent 8e044ea898
commit 6b05d5d65d
5 changed files with 176 additions and 134 deletions

View File

@@ -306,6 +306,8 @@ public:
#if HAS_SPI_LCD
static millis_t next_button_update_ms;
static bool detected();
static LCDViewAction lcdDrawUpdate;
@@ -531,10 +533,6 @@ public:
static volatile uint8_t slow_buttons;
static uint8_t read_slow_buttons();
#endif
#if ENABLED(TOUCH_BUTTONS)
static volatile uint8_t touch_buttons;
static uint8_t read_touch_buttons();
#endif
static void update_buttons();
static inline bool button_pressed() { return BUTTON_CLICK(); }