arreglos en options.hpp/cpp
This commit is contained in:
@@ -51,8 +51,7 @@ Input::Input(std::string game_controller_db_path)
|
||||
{Action::TOGGLE_BORDER, KeyState{SDL_SCANCODE_F9}},
|
||||
{Action::TOGGLE_VSYNC, KeyState{SDL_SCANCODE_F10}},
|
||||
{Action::PAUSE, KeyState{SDL_SCANCODE_F11}},
|
||||
{Action::TOGGLE_DEBUG, KeyState{SDL_SCANCODE_F12}}
|
||||
};
|
||||
{Action::TOGGLE_DEBUG, KeyState{SDL_SCANCODE_F12}}};
|
||||
|
||||
initSDLGamePad(); // Inicializa el subsistema SDL_INIT_GAMEPAD
|
||||
}
|
||||
@@ -64,9 +63,9 @@ void Input::bindKey(Action action, SDL_Scancode code) {
|
||||
|
||||
// Aplica las teclas configuradas desde Options
|
||||
void Input::applyKeyboardBindingsFromOptions() {
|
||||
bindKey(Action::LEFT, Options::controls.key_left);
|
||||
bindKey(Action::RIGHT, Options::controls.key_right);
|
||||
bindKey(Action::JUMP, Options::controls.key_jump);
|
||||
bindKey(Action::LEFT, Options::keyboard_controls.key_left);
|
||||
bindKey(Action::RIGHT, Options::keyboard_controls.key_right);
|
||||
bindKey(Action::JUMP, Options::keyboard_controls.key_jump);
|
||||
}
|
||||
|
||||
// Aplica configuración de botones del gamepad desde Options al primer gamepad conectado
|
||||
|
||||
Reference in New Issue
Block a user