This commit is contained in:
2025-08-17 01:10:57 +02:00
parent 327987447d
commit 1ec272f017
13 changed files with 38 additions and 36 deletions

View File

@@ -22,9 +22,9 @@ class DefineButtons {
struct Button {
std::string label;
Input::Action action;
SDL_GamepadButton button;
int button;
Button(std::string label, Input::Action action, SDL_GamepadButton button)
Button(std::string label, Input::Action action, int button)
: label(std::move(label)), action(action), button(button) {}
};
@@ -71,7 +71,7 @@ class DefineButtons {
void doControllerAxisMotion(const SDL_GamepadAxisEvent &event);
void bindButtons(Options::Gamepad *options_gamepad);
auto checkButtonNotInUse(SDL_GamepadButton button) -> bool;
auto checkTriggerNotInUse(SDL_GamepadButton trigger_button) -> bool;
auto checkTriggerNotInUse(int trigger_button) -> bool;
void clearButtons();
void checkEnd();
void updateWindowMessage();