EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
eeros::hal::Joystick Class Reference

#include <Joystick.hpp>

Collaboration diagram for eeros::hal::Joystick:

Public Member Functions

 Joystick ()
 
 ~Joystick ()
 
virtual bool open (const char *device)
 
virtual void close ()
 
virtual void loop ()
 
virtual void on_event (std::function< void(struct js_event)> action)
 
virtual void on_button (std::function< void(int, bool)> action)
 
virtual void on_axis (std::function< void(int, double)> action)
 
virtual std::string name ()
 

Public Attributes

JoystickState last
 
JoystickState current
 

Constructor & Destructor Documentation

Joystick::Joystick ( )
explicit
Joystick::~Joystick ( )

Here is the call graph for this function:

Member Function Documentation

void Joystick::close ( )
virtual

Here is the caller graph for this function:

void Joystick::loop ( )
virtual
std::string Joystick::name ( )
virtual
void Joystick::on_axis ( std::function< void(int, double)>  action)
virtual
void Joystick::on_button ( std::function< void(int, bool)>  action)
virtual

Here is the caller graph for this function:

void Joystick::on_event ( std::function< void(struct js_event)>  action)
virtual
bool Joystick::open ( const char *  device)
virtual

Member Data Documentation

JoystickState eeros::hal::Joystick::current
JoystickState eeros::hal::Joystick::last

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