migrant input: ja mapeja be tots els botons desde el fitxer de configuració
This commit is contained in:
@@ -143,7 +143,7 @@ auto Input::getNumGamepads() const -> int { return gamepads_.size(); }
|
||||
|
||||
// Obtiene el gamepad a partir de un event.id
|
||||
std::shared_ptr<Input::Gamepad> Input::getGamepad(SDL_JoystickID id) const {
|
||||
for (const auto& gamepad : gamepads_) {
|
||||
for (const auto &gamepad : gamepads_) {
|
||||
if (gamepad->instance_id == id) {
|
||||
return gamepad;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user