Class ControllerEvent#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class ControllerEvent : public TRAP::Events::Event#

Controller event base class.

Remark

Headless mode: This class is not available in headless mode.

Subclassed by TRAP::Events::ControllerConnectEvent, TRAP::Events::ControllerDisconnectEvent

Public Functions

consteval ControllerEvent(const ControllerEvent&) noexcept = delete#

Copy constructor.

consteval ControllerEvent &operator=(const ControllerEvent&) noexcept = delete#

Copy assignment operator.

constexpr ~ControllerEvent() override = default#

Destructor.

constexpr Input::Controller GetController() const#

Retrieve the affected controller.

Returns:

Controller.

virtual constexpr EventCategory GetCategoryFlags() const noexcept override#

Retrieve the category flags of the event.

Returns:

Combination of one or more EventCategory’s.

Protected Functions

explicit constexpr ControllerEvent(Input::Controller controller) noexcept#

Constructor.

Parameters:

controller – Affected controller.

constexpr ControllerEvent(ControllerEvent&&) noexcept = default#

Move constructor.

constexpr ControllerEvent &operator=(ControllerEvent&&) noexcept = default#

Move assignment operator.