MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / UpdateGamepadDeadzone

Method UpdateGamepadDeadzone

Source/UserInput/input.cpp:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void Input::UpdateGamepadDeadzone() {
121 for (auto& open_joystick : open_joysticks_) {
122 char buffer[64];
123 sprintf(buffer, "gamepad_%i_deadzone", open_joystick.second->player_input);
124 open_joystick.second->joystick.deadzone = config[buffer].toNumber<float>();
125 }
126}
127
128void Input::OpenJoystick(int index) {
129 // int num_joysticks = SDL_NumJoysticks();

Callers 1

ReloadDynamicSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected