Skip to content

Commit

Permalink
The zero happens at a higher level now
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 29, 2020
1 parent 39c958b commit ae9ff11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -1132,8 +1132,7 @@ LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out)
return SDL_FALSE;
}

/* We have a gamepad; start filling out the mappings. */
memset(out, 0, sizeof(SDL_GamepadMapping));
/* We have a gamepad, start filling out the mappings */

if (joystick->hwdata->has_key[BTN_SOUTH]) {
out->a.kind = EMappingKind_Button;
Expand Down

0 comments on commit ae9ff11

Please sign in to comment.