Input: simplify InitPadConfig

This commit is contained in:
Megamouse 2022-10-15 12:10:40 +02:00
parent cf86b6c107
commit 814adbb8c4
6 changed files with 9 additions and 38 deletions

View file

@ -342,7 +342,7 @@ void evdev_joystick_handler::get_next_button_press(const std::string& padId, con
return it != data.end() && dir == it->second.second ? it->second.first : 0;
};
pad_preview_values preview_values = { 0, 0, 0, 0, 0, 0 };
pad_preview_values preview_values{};
if (buttons.size() == 10)
{