16namespace sf {
class Event; }
18namespace Imago::Engine
37 float deadZone = 0.0f;
38 float threshold = 0.5f;
42 std::vector<SourceEntry> _sources;
51 void set_source_value(
const InputSource& source,
float magnitude);
57 void refresh_action(
ActionId action);
85 void add_input(
const std::string& name,
const InputSource& source,
float deadZone = 0.0f,
float threshold = 0.5f);
86 void add_input(
const std::string& name, sf::Keyboard::Scancode scancode);
87 void add_input(
const std::string& name, sf::Mouse::Button button);
88 void add_input(
const std::string& name, GamepadButton button);
89 void add_input(
const std::string& name, GamepadAxis axis,
float deadZone = 0.2f,
float threshold = 0.5f);