2023-06-08 00:54:01 +02:00
|
|
|
#ifndef HOLESOME_BUTTON_CONFIG_FACTORY_HPP
|
|
|
|
#define HOLESOME_BUTTON_CONFIG_FACTORY_HPP
|
|
|
|
|
|
|
|
|
|
|
|
#include <SFML/Window/Keyboard.hpp>
|
|
|
|
#include "button_config.hpp"
|
|
|
|
|
|
|
|
class ButtonConfigFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static ButtonConfig fromKey(sf::Keyboard::Key key);
|
|
|
|
|
2023-06-10 14:47:34 +02:00
|
|
|
static ButtonConfig fromGamepadButton(unsigned int button);
|
2023-06-08 00:54:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //HOLESOME_BUTTON_CONFIG_FACTORY_HPP
|