Class ControllerEvent#
Defined in File ControllerEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::Event
(Class Event)
Derived Types#
public TRAP::Events::ControllerConnectEvent
(Class ControllerConnectEvent)public TRAP::Events::ControllerDisconnectEvent
(Class ControllerDisconnectEvent)
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.
-
consteval ControllerEvent(const ControllerEvent&) noexcept = delete#