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

Function IsProtectedButton

src/input_buttons.h:204–217  ·  view source on GitHub ↗

* Protected buttons are buttons where unmapping them makes the Player unusable. * @return true when the button is protected */

Source from the content-addressed store, hash-verified

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 {

Callers 2

LoadFromStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected