MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_MouseRelativeSpeedScaleChanged

Function SDL_MouseRelativeSpeedScaleChanged

deps/SDL2/src/events/SDL_mouse.c:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static void SDLCALL
88SDL_MouseRelativeSpeedScaleChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
89{
90 SDL_Mouse *mouse = (SDL_Mouse *)userdata;
91
92 if (hint && *hint) {
93 mouse->relative_speed_scale = (float)SDL_atof(hint);
94 } else {
95 mouse->relative_speed_scale = 1.0f;
96 }
97}
98
99static void SDLCALL
100SDL_TouchMouseEventsChanged(void *userdata, const char *name, const char *oldValue, const char *hint)

Callers

nothing calls this directly

Calls 1

SDL_atofFunction · 0.85

Tested by

no test coverage detected