35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
216 std::vector<std::unique_ptr<
Control>> m_controls;
250 std::vector<
Action*> m_actions;
253 #ifndef DOXYGEN_SHOULD_SKIP_THIS
void addAction(Action &action)
Add an action.
GamepadAxisDirection
A gamepad axis direction.
Definition: Gamepad.h:88
GamepadButton
The gamepad buttons.
Definition: Gamepad.h:42
bool isInstantaneous() const
Check if the action is instantaneous.
A set of actions.
Definition: Action.h:224
void reset()
Reset the state of the action.
Action & operator=(const Action &)=delete
Deleted copy assignment.
const std::string & getName() const
Get the name of the action.
Definition: Action.h:70
void processEvent(const Event &event)
Update the state of the action thanks to an event.
void addGamepadButtonControl(GamepadId id, GamepadButton button)
Add a gamepad button control.
void reset()
Reset all the actions.
Scancode
Scancodes.
Definition: Keyboard.h:66
bool isActive()
Check if the action is active.
bool isContinuous() const
Check if the action is continuous.
A physical control.
Definition: Control.h:38
GamepadAxis
The gamepad axis.
Definition: Gamepad.h:70
void processEvent(const Event &event)
Update all the actions.
void addGamepadAxisControl(GamepadId id, GamepadAxis axis, GamepadAxisDirection dir)
Add a gamepad axis control.
GamepadId
A gamepad identifier.
Definition: Gamepad.h:120
void addKeycodeKeyControl(Keycode code)
Add a key control.
Action(std::string name)
Construct an action with a name.
An action that can be triggered by different controls.
Definition: Action.h:46
void addCloseControl()
Add a close control.
void setInstantaneous()
Set the action instantaneous.
MouseButton
Mouse buttons.
Definition: Mouse.h:36
Defines a system event and its parameters.
Definition: Event.h:115
#define GF_API
Definition: Portability.h:35
Action(const Action &)=delete
Deleted copy constructor.
void addMouseButtonControl(MouseButton button)
Add a mouse button control.
Keycode
Keycodes.
Definition: Keyboard.h:293
void setContinuous()
Set the action continuous.
void addScancodeKeyControl(Scancode code)
Add a key control.