Class ControllerConnectEvent#

Inheritance Relationships#

Base Type#

Class Documentation#

class ControllerConnectEvent : public TRAP::Events::ControllerEvent#

Controller connected event.

Remark

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

Public Functions

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

Constructor.

Parameters:

controller – Newly connected controller.

constexpr ~ControllerConnectEvent() override = default#

Destructor.

consteval ControllerConnectEvent(const ControllerConnectEvent&) noexcept = delete#

Copy constructor.

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

Copy assignment operator.

constexpr ControllerConnectEvent(ControllerConnectEvent&&) noexcept = default#

Move constructor.

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

Move assignment operator.

virtual constexpr EventType GetEventType() const noexcept override#

Retrieve the EventType of the event.

Returns:

EventType.

virtual constexpr std::string GetName() const override#

Retrieve the name of the event.

Returns:

Name.

virtual std::string ToString() const override#

Get a string representation of the event.

Returns:

String representation.

Public Static Functions

static constexpr EventType GetStaticType() noexcept#

Retrieve the EventType of the event.

Returns:

EventType.