holesome/src/game/input/button_config_factory.hpp

18 lines
351 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);
static ButtonConfig fromGamepadButton(int button);
};
#endif //HOLESOME_BUTTON_CONFIG_FACTORY_HPP