input_common: Add property to invert an axis button

This commit is contained in:
Narr the Reg 2023-05-05 17:11:53 -06:00
parent 46e835f2d6
commit f017335fef
6 changed files with 15 additions and 3 deletions

View file

@ -111,6 +111,8 @@ struct AnalogProperties {
float offset{};
// Invert direction of the sensor data
bool inverted{};
// Invert the state if it's converted to a button
bool inverted_button{};
// Press once to activate, press again to release
bool toggle{};
};