* Return true if the given button is a system button. * System buttons are refreshed on every physical frame * and do not affect the game logic. */
| 184 | * and do not affect the game logic. |
| 185 | */ |
| 186 | constexpr bool IsSystemButton(InputButton b) { |
| 187 | switch (b) { |
| 188 | case TOGGLE_FPS: |
| 189 | case TAKE_SCREENSHOT: |
| 190 | case SHOW_LOG: |
| 191 | case TOGGLE_ZOOM: |
| 192 | case FAST_FORWARD_A: |
| 193 | case FAST_FORWARD_B: |
| 194 | return true; |
| 195 | default: |
| 196 | return false; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Protected buttons are buttons where unmapping them makes the Player unusable. |
no outgoing calls
no test coverage detected