MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / isDevVirtualControllerEnabled

Function isDevVirtualControllerEnabled

Source/Input/Controller.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23#if DORA_DEV_VIRTUAL_CONTROLLER
24static bool isDevVirtualControllerEnabled() {
25 auto value = SDL_getenv("DORA_VIRTUAL_CONTROLLER");
26 return value && SDL_strcasecmp(value, "0") != 0 && SDL_strcasecmp(value, "false") != 0;
27}
28
29static Uint32 makeControllerButtonMask() {
30 Uint32 mask = 0;

Callers 1

initInRenderMethod · 0.85

Calls 2

SDL_getenvFunction · 0.85
SDL_strcasecmpFunction · 0.85

Tested by

no test coverage detected