accessor_event.h 259 B

12345678910111213141516171819
  1. #pragma once
  2. #include <stdint.h>
  3. class AccessorEvent {
  4. public:
  5. // events enum
  6. enum class Type : uint8_t {
  7. Tick,
  8. Back,
  9. };
  10. // payload
  11. union {
  12. uint32_t menu_index;
  13. } payload;
  14. // event type
  15. Type type;
  16. };