32 #include "Portability.h" 35 #ifndef DOXYGEN_SHOULD_SKIP_THIS 53 explicit Action(std::string name);
93 bool isContinuous()
const;
103 void setInstantaneous();
110 bool isInstantaneous()
const;
125 void addKeycodeKeyControl(
Keycode code);
134 void addScancodeKeyControl(
Scancode code);
171 void addCloseControl();
179 void addControl(
Control& control);
193 void processEvent(
const Event& event);
224 std::vector<std::unique_ptr<Control>> m_ownedControls;
225 std::vector<Control *> m_controls;
240 void addAction(
Action& action);
248 bool hasAction(
const std::string& name)
const;
257 Action& getAction(
const std::string& name);
266 const Action& getAction(
const std::string& name)
const;
275 void processEvent(
const Event& event);
285 std::vector<Action*> m_actions;
288 #ifndef DOXYGEN_SHOULD_SKIP_THIS 293 #endif // GF_ACTION_H GamepadAxisDirection
A gamepad axis direction.
Definition: Gamepad.h:88
GamepadButton
The gamepad buttons.
Definition: Gamepad.h:42
A set of actions.
Definition: Action.h:233
Scancode
Scancodes.
Definition: Keyboard.h:70
A physical control.
Definition: Control.h:38
const std::string & getName() const
Get the name of the action.
Definition: Action.h:70
GamepadAxis
The gamepad axis.
Definition: Gamepad.h:70
The namespace for gf classes.
Definition: Action.h:34
GamepadId
A gamepad identifier.
Definition: Gamepad.h:120
An action that can be triggered by different controls.
Definition: Action.h:46
MouseButton
Mouse buttons.
Definition: Mouse.h:36
Defines a system event and its parameters.
Definition: Event.h:118
Keycode
Keycodes.
Definition: Keyboard.h:299