MCPcopy Create free account
hub / github.com/EasyRPG/Player / IsSystemButton

Function IsSystemButton

src/input_buttons.h:186–198  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

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.

Callers 12

UpdateSystemMethod · 0.85
ResetNonSystemKeysMethod · 0.85
IsPressedMethod · 0.85
IsTriggeredMethod · 0.85
IsRepeatedMethod · 0.85
IsReleasedMethod · 0.85
IsSystemPressedMethod · 0.85
IsSystemTriggeredMethod · 0.85
IsSystemRepeatedMethod · 0.85
IsSystemReleasedMethod · 0.85
DoUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected