InputSource: Explicitly construct binding key

This commit is contained in:
Stenzek
2024-07-04 21:40:32 +10:00
parent c02bf0f662
commit 9fcc98a60a
2 changed files with 5 additions and 4 deletions

View File

@ -822,7 +822,7 @@ bool SDLInputSource::CloseDevice(int joystick_index)
return false;
InputManager::OnInputDeviceDisconnected(
{{.source_type = InputSourceType::SDL, .source_index = static_cast<u32>(it->player_id)}},
InputBindingKey{{.source_type = InputSourceType::SDL, .source_index = static_cast<u32>(it->player_id)}},
fmt::format("SDL-{}", it->player_id));
if (it->haptic)