mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-15 10:27:26 +00:00
Simplification when using C++20
This commit is contained in:
@@ -181,7 +181,7 @@ void Game::addJoystick(SDL_Event& e) {
|
|||||||
auto controller = std::make_shared<GameController>(which);
|
auto controller = std::make_shared<GameController>(which);
|
||||||
const auto joystickId = controller->getJoystickId();
|
const auto joystickId = controller->getJoystickId();
|
||||||
m_gameControllers[which] = controller;
|
m_gameControllers[which] = controller;
|
||||||
SDL_assert(m_mappedControllers.find(joystickId) == m_mappedControllers.end());
|
SDL_assert(m_mappedControllers.contains(joystickId));
|
||||||
m_mappedControllers[joystickId] = which;
|
m_mappedControllers[joystickId] = which;
|
||||||
SDL_Log("Joystick device %d added (%zd controllers)", which, m_gameControllers.size());
|
SDL_Log("Joystick device %d added (%zd controllers)", which, m_gameControllers.size());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user