17 lines
360 B
C++
17 lines
360 B
C++
#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(unsigned int button);
|
|
};
|
|
|
|
|
|
#endif //HOLESOME_BUTTON_CONFIG_FACTORY_HPP
|