input_common: Release mouse buttons on out of focus
This commit is contained in:
parent
c17a59b58e
commit
6e81473574
3 changed files with 18 additions and 1 deletions
|
@ -65,10 +65,16 @@ public:
|
|||
void MouseMove(int x, int y, int center_x, int center_y);
|
||||
|
||||
/**
|
||||
* Signals that a motion sensor tilt has ended.
|
||||
* Signals that a button is released.
|
||||
* @param button_ the button pressed
|
||||
*/
|
||||
void ReleaseButton(MouseButton button_);
|
||||
|
||||
/**
|
||||
* Signals that all buttons are released
|
||||
*/
|
||||
void ReleaseAllButtons();
|
||||
|
||||
[[nodiscard]] bool ToggleButton(std::size_t button_);
|
||||
[[nodiscard]] bool UnlockButton(std::size_t button_);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue