diff options
| author | 2021-11-21 14:12:01 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:28 -0600 | |
| commit | 746c85b56011b87afb57e37b75953435389fc810 (patch) | |
| tree | 32d31216be1450b5fbe9897e15829ff9bc1f1e7c /src/common/input.h | |
| parent | input_common: Fix SDL controller with inverted axis (diff) | |
| download | yuzu-746c85b56011b87afb57e37b75953435389fc810.tar.gz yuzu-746c85b56011b87afb57e37b75953435389fc810.tar.xz yuzu-746c85b56011b87afb57e37b75953435389fc810.zip | |
input_common: Move button names to the frontend
Diffstat (limited to 'src/common/input.h')
| -rw-r--r-- | src/common/input.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/common/input.h b/src/common/input.h index d997853c6..cc0cbd9b8 100644 --- a/src/common/input.h +++ b/src/common/input.h | |||
| @@ -175,6 +175,28 @@ struct LedStatus { | |||
| 175 | bool led_4{}; | 175 | bool led_4{}; |
| 176 | }; | 176 | }; |
| 177 | 177 | ||
| 178 | // List of buttons to be passed to Qt that can be translated | ||
| 179 | enum class ButtonNames { | ||
| 180 | Undefined, | ||
| 181 | Invalid, | ||
| 182 | // This will display the engine name instead of the button name | ||
| 183 | Engine, | ||
| 184 | // This will display the button by value instead of the button name | ||
| 185 | Value, | ||
| 186 | ButtonLeft, | ||
| 187 | ButtonRight, | ||
| 188 | ButtonDown, | ||
| 189 | ButtonUp, | ||
| 190 | TriggerZ, | ||
| 191 | TriggerR, | ||
| 192 | TriggerL, | ||
| 193 | ButtonA, | ||
| 194 | ButtonB, | ||
| 195 | ButtonX, | ||
| 196 | ButtonY, | ||
| 197 | ButtonStart, | ||
| 198 | }; | ||
| 199 | |||
| 178 | // Callback data consisting of an input type and the equivalent data status | 200 | // Callback data consisting of an input type and the equivalent data status |
| 179 | struct CallbackStatus { | 201 | struct CallbackStatus { |
| 180 | InputType type{InputType::None}; | 202 | InputType type{InputType::None}; |