YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
JoystickActionsHandler Class Reference

#include <SDLJoypad/SDLJoypad.h>

Public Member Functions

 JoystickActionsHandler ()=default
 
 ~JoystickActionsHandler ()=default
 
bool parseActions (const yarp::os::Searchable &cfg, size_t maxButtons, int *count=nullptr)
 
bool executeAction (int action_id)
 
bool actionDetected (int button_id)
 

Public Attributes

std::map< int, std::string > m_actions
 
const std::string buttActionGroupName ="BUTTON_EXECUTE"
 

Detailed Description

Definition at line 28 of file SDLJoypad.h.

Constructor & Destructor Documentation

◆ JoystickActionsHandler()

JoystickActionsHandler::JoystickActionsHandler ( )
default

◆ ~JoystickActionsHandler()

JoystickActionsHandler::~JoystickActionsHandler ( )
default

Member Function Documentation

◆ actionDetected()

bool JoystickActionsHandler::actionDetected ( int  button_id)

Definition at line 544 of file SDLJoypad.cpp.

◆ executeAction()

bool JoystickActionsHandler::executeAction ( int  action_id)

Definition at line 474 of file SDLJoypad.cpp.

◆ parseActions()

bool JoystickActionsHandler::parseActions ( const yarp::os::Searchable &  cfg,
size_t  maxButtons,
int *  count = nullptr 
)

Definition at line 490 of file SDLJoypad.cpp.

Member Data Documentation

◆ buttActionGroupName

const std::string JoystickActionsHandler::buttActionGroupName ="BUTTON_EXECUTE"

Definition at line 35 of file SDLJoypad.h.

◆ m_actions

std::map<int, std::string> JoystickActionsHandler::m_actions

Definition at line 33 of file SDLJoypad.h.


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