Make physical buttons pressable in simulator

This commit is contained in:
2023-05-24 00:02:30 +02:00
parent b4ba566ef5
commit a3265543a5
5 changed files with 49 additions and 49 deletions

View File

@ -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: