GamepadComponent(WAL::Entity &entity)
Create a new gampad component using default keys.
Definition: GamepadComponent.cpp:11
Axis LeftStickY
Definition: GamepadComponent.hpp:40
Axis LeftStickX
Definition: GamepadComponent.hpp:39
RAY::Controller::GamePad::Axis Axis
Definition: GamepadComponent.hpp:13
void onStart() override
The entity or this component has just been enabled.
Definition: GamepadComponent.cpp:35
Represent a single component of WAL.
Definition: Component.hpp:17
RAY::Controller::GamePad::Button Button
Definition: GamepadComponent.hpp:12
Definition: AnimationsComponent.cpp:9
Button keyLeft
move left key
Definition: GamepadComponent.hpp:33
An entity of the WAL's ECS.
Definition: Entity.hpp:20
Axis RightStickY
Definition: GamepadComponent.hpp:42
Button keyRight
move right key
Definition: GamepadComponent.hpp:31
int getID() const
Get the ID of the Gamepad the events must be fetch from;.
Definition: GamepadComponent.cpp:30
Button keyPause
pause key
Definition: GamepadComponent.hpp:29
GamepadComponent & operator=(const GamepadComponent &)=delete
A Gamepad component can't be assigned.
Button keyBomb
bomb key
Definition: GamepadComponent.hpp:27
Axis RightStickX
Definition: GamepadComponent.hpp:41
Entity representing a gamepad controller.
Definition: Gamepad.hpp:17
::GamepadButton Button
Definition: Gamepad.hpp:19
WAL::Component * clone(WAL::Entity &entity) const override
Clone a component for another or the same entity.
Definition: GamepadComponent.cpp:19
::GamepadAxis Axis
Definition: Gamepad.hpp:20
Definition: GamepadComponent.hpp:18
Button keySecondary
jump key
Definition: GamepadComponent.hpp:25
int _ID
Identifier of the gamepad, used to fetch events.
Definition: GamepadComponent.hpp:22
Button keyDown
move down key
Definition: GamepadComponent.hpp:37
~GamepadComponent() override=default
default destructor
Button keyUp
move up key
Definition: GamepadComponent.hpp:35
GamepadComponent & setID(int ID)
Set the ID of the Gamepad the events must be fetch from;.
Definition: GamepadComponent.cpp:24