holesome/src/game/input/button_config_factory.hpp

18 lines
360 B
C++
Raw Normal View History

#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);
};
#endif //HOLESOME_BUTTON_CONFIG_FACTORY_HPP