diff --git a/src/io/keybinding.cpp b/src/io/keybinding.cpp index 12985a1..7a97ade 100644 --- a/src/io/keybinding.cpp +++ b/src/io/keybinding.cpp @@ -610,19 +610,23 @@ void Keybinding::handleEvent(const SDL_Event& event) { SDL_GameController* gc = SDL_GameControllerOpen(event.cdevice.which); if (gc) - LOG(Info, "Found game controller:", SDL_GameControllerName(gc)); + LOG(Info, "Found game controller:", SDL_JoystickGetDeviceInstanceID(event.cdevice.which), SDL_GameControllerName(gc)); else LOG(Warning, "Failed to open game controller..."); } break; case SDL_CONTROLLERDEVICEREMOVED: - for(int button=0; button