jugant amb clang-tidy
This commit is contained in:
@@ -38,9 +38,9 @@ void DefineButtons::doControllerButtonDown(const SDL_GamepadButtonEvent &event)
|
||||
return;
|
||||
}
|
||||
|
||||
const auto button = static_cast<SDL_GamepadButton>(event.button);
|
||||
if (checkButtonNotInUse(button)) {
|
||||
buttons_.at(index_button_).button = button;
|
||||
const auto BUTTON = static_cast<SDL_GamepadButton>(event.button);
|
||||
if (checkButtonNotInUse(BUTTON)) {
|
||||
buttons_.at(index_button_).button = BUTTON;
|
||||
incIndexButton();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user