Skip to content

Commit

Permalink
Do not fallback to X button for start function (#35)
Browse files Browse the repository at this point in the history
The start function is required in game too and it may conflict with the usage of X button
  • Loading branch information
drfiemost committed Jul 3, 2023
1 parent add60b1 commit e0b1624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hurrican/src/DX8Joystick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ bool DirectJoystickClass::Init(int joy) {
if (bind.bindType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
startButton = bind.value.button;
Protokoll << "Start function mapped to button START (" << startButton << ")" << std::endl;
} else {
} /*else {
// fallback to X button
bind = SDL_GameControllerGetBindForButton(controller, SDL_CONTROLLER_BUTTON_X);
if (bind.bindType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
startButton = bind.value.button;
Protokoll << "Start function mapped to button X (" << startButton << ")" << std::endl;
}
}
}*/
// try mapping A button for enter function
bind = SDL_GameControllerGetBindForButton(controller, SDL_CONTROLLER_BUTTON_A);
if (bind.bindType == SDL_CONTROLLER_BINDTYPE_BUTTON) {
Expand Down

0 comments on commit e0b1624

Please sign in to comment.