input_common: Implement turbo buttons

This commit is contained in:
german77
2023-01-28 18:19:15 -06:00
committed by Narr the Reg
parent 4069c3ac8b
commit 75e81885b0
6 changed files with 115 additions and 18 deletions

View File

@ -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{};
};