Made type more specific

This commit is contained in:
Maximilian Giller 2023-06-10 14:47:34 +02:00
parent 5a4c3949b0
commit cdc8fedfeb
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ ButtonConfig ButtonConfigFactory::fromKey(sf::Keyboard::Key key)
return {};
}
ButtonConfig ButtonConfigFactory::fromGamepadButton(int button)
ButtonConfig ButtonConfigFactory::fromGamepadButton(unsigned int button)
{
if (GAMEPAD_BUTTON_CONFIGS.find(button) != GAMEPAD_BUTTON_CONFIGS.end())
{

View file

@ -10,7 +10,7 @@ class ButtonConfigFactory
public:
static ButtonConfig fromKey(sf::Keyboard::Key key);
static ButtonConfig fromGamepadButton(int button);
static ButtonConfig fromGamepadButton(unsigned int button);
};