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