hotkeys.hpp 815 B

12345678910111213141516171819202122232425
  1. struct InputHotkey;
  2. struct HotkeySettings : PanelItem {
  3. HotkeySettings(View*);
  4. auto show() -> void override;
  5. auto hide() -> void override;
  6. auto refresh() -> void;
  7. auto update() -> void;
  8. auto eventAssign() -> void;
  9. auto eventAssignNext() -> void;
  10. auto eventClear() -> void;
  11. auto eventChange() -> void;
  12. auto eventInput(shared_pointer<HID::Device>, uint group, uint input, int16_t oldValue, int16_t newValue) -> void;
  13. Label headerLabel{this, Size{~0, 0}};
  14. TableView hotkeyList{this, Size{~0, ~0}};
  15. HorizontalLayout controlLayout{this, Size{~0, 0}};
  16. Widget spacer{&controlLayout, Size{~0, 0}, 0};
  17. Button assignButton{&controlLayout, Size{80_sx, 0}};
  18. Button clearButton{&controlLayout, Size{80_sx, 0}};
  19. maybe<InputHotkey&> assigning;
  20. vector<TableViewItem> assigningQueue;
  21. };