Open 3D Engine ROS2 Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ROS2::VehicleDynamics::ManualControlSingleEventHandler Class Reference

A handler for a single input event. More...

#include <ManualControlEventHandler.h>

Inherits StartingPointInput::InputEventNotificationBus::Handler.

Public Types

using OnHeldHandlerFunction = AZStd::function< void(float)>
 

Public Member Functions

 ManualControlSingleEventHandler (const AZStd::string &eventName, OnHeldHandlerFunction handler)
 
void Activate ()
 
void Deactivate ()
 

Detailed Description

A handler for a single input event.

Constructor & Destructor Documentation

◆ ManualControlSingleEventHandler()

ROS2::VehicleDynamics::ManualControlSingleEventHandler::ManualControlSingleEventHandler ( const AZStd::string &  eventName,
OnHeldHandlerFunction  handler 
)
inline

Construct the event handler.

Parameters
eventNamewhich event to handle (eg "steering", "accelerate")
handlera function which handles the input, typically through re-publishing it to a vehicle input bus.

The documentation for this class was generated from the following file: