Class ControllerDisconnectEvent#
Defined in File ControllerEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::ControllerEvent
(Class ControllerEvent)
Class Documentation#
-
class ControllerDisconnectEvent : public TRAP::Events::ControllerEvent#
Controller disconnected event.
Remark
Headless mode: This class is not available in headless mode.
Public Functions
-
explicit constexpr ControllerDisconnectEvent(Input::Controller controller) noexcept#
Constructor.
- Parameters:
controller – Disconnected controller.
-
constexpr ~ControllerDisconnectEvent() override = default#
Destructor.
-
consteval ControllerDisconnectEvent(const ControllerDisconnectEvent&) noexcept = delete#
Copy constructor.
-
consteval ControllerDisconnectEvent &operator=(const ControllerDisconnectEvent&) noexcept = delete#
Copy assignment operator.
-
constexpr ControllerDisconnectEvent(ControllerDisconnectEvent&&) noexcept = default#
Move constructor.
-
constexpr ControllerDisconnectEvent &operator=(ControllerDisconnectEvent&&) 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.
-
explicit constexpr ControllerDisconnectEvent(Input::Controller controller) noexcept#