Make physical buttons pressable in simulator
This commit is contained in:
@ -4,16 +4,16 @@
|
||||
#include "platform/driver/button/ButtonController.hpp"
|
||||
#include <stdint.h>
|
||||
|
||||
constexpr uint8_t KEY_BTN1 = 1;
|
||||
constexpr uint8_t KEY_BTN2 = 2;
|
||||
constexpr uint8_t KEY_BTN3 = 3;
|
||||
constexpr uint8_t KEY_BTN4 = 4;
|
||||
constexpr uint8_t KEY_BTN5 = 5;
|
||||
constexpr uint8_t KEY_BTN6 = 6;
|
||||
constexpr uint8_t KEY_ENC1_CW = 21;
|
||||
constexpr uint8_t KEY_ENC1_CCW = 22;
|
||||
constexpr uint8_t KEY_ENC2_CW = 23;
|
||||
constexpr uint8_t KEY_ENC2_CCW = 24;
|
||||
constexpr uint8_t KEY_BTN1 = '1';
|
||||
constexpr uint8_t KEY_BTN2 = '2';
|
||||
constexpr uint8_t KEY_BTN3 = '3';
|
||||
constexpr uint8_t KEY_BTN4 = '4';
|
||||
constexpr uint8_t KEY_BTN5 = '5';
|
||||
constexpr uint8_t KEY_BTN6 = '6';
|
||||
constexpr uint8_t KEY_ENC1_CW = 'l';
|
||||
constexpr uint8_t KEY_ENC1_CCW = 'h';
|
||||
constexpr uint8_t KEY_ENC2_CW = 'j';
|
||||
constexpr uint8_t KEY_ENC2_CCW = 'k';
|
||||
|
||||
class STWButtonController : public touchgfx::ButtonController {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user