Restore -Wenum-compare and fix some [=] warnings

This commit is contained in:
Nekotekina 2020-02-18 17:09:38 +03:00
parent 0ee2f761ae
commit 8a176de6a1
5 changed files with 7 additions and 8 deletions

View file

@ -292,7 +292,7 @@ void evdev_joystick_handler::get_next_button_press(const std::string& padId, con
auto data = GetButtonValues(device);
auto find_value = [=](const std::string& name)
auto find_value = [=, this](const std::string& name)
{
int key = FindKeyCodeByString(rev_axis_list, name, false);
bool dir = key >= 0;