* Protected buttons are buttons where unmapping them makes the Player unusable. * @return true when the button is protected */
| 202 | * @return true when the button is protected |
| 203 | */ |
| 204 | constexpr bool IsProtectedButton(InputButton b) { |
| 205 | switch (b) { |
| 206 | case UP: |
| 207 | case DOWN: |
| 208 | case LEFT: |
| 209 | case RIGHT: |
| 210 | case DECISION: |
| 211 | case CANCEL: |
| 212 | case SETTINGS_MENU: // Not really critical but needs a way to enter it |
| 213 | return true; |
| 214 | default: |
| 215 | return false; |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | namespace Direction { |
| 220 | enum InputDirection : uint8_t { |
no outgoing calls
no test coverage detected