input_common: Implement turbo buttons
This commit is contained in:
parent
4069c3ac8b
commit
75e81885b0
6 changed files with 115 additions and 18 deletions
|
@ -130,6 +130,8 @@ struct ButtonStatus {
|
|||
bool inverted{};
|
||||
// Press once to activate, press again to release
|
||||
bool toggle{};
|
||||
// Spams the button when active
|
||||
bool turbo{};
|
||||
// Internal lock for the toggle status
|
||||
bool locked{};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue