Enable mouse toggle buttons
This commit is contained in:
parent
4bcc5bacff
commit
41e94b7b99
5 changed files with 65 additions and 11 deletions
|
@ -67,6 +67,9 @@ public:
|
|||
*/
|
||||
void ReleaseButton(int button_);
|
||||
|
||||
[[nodiscard]] bool ToggleButton(std::size_t button_);
|
||||
[[nodiscard]] bool UnlockButton(std::size_t button_);
|
||||
|
||||
[[nodiscard]] Common::SPSCQueue<MouseStatus>& GetMouseQueue();
|
||||
[[nodiscard]] const Common::SPSCQueue<MouseStatus>& GetMouseQueue() const;
|
||||
|
||||
|
@ -92,6 +95,8 @@ private:
|
|||
};
|
||||
|
||||
u16 buttons{};
|
||||
u16 toggle_buttons{};
|
||||
u16 lock_buttons{};
|
||||
std::thread update_thread;
|
||||
MouseButton last_button{MouseButton::Undefined};
|
||||
std::array<MouseInfo, 5> mouse_info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue