EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
eeros::hal::XBox Class Reference

#include <XBox.hpp>

Inheritance diagram for eeros::hal::XBox:
Collaboration diagram for eeros::hal::XBox:

Public Member Functions

 XBox (std::string dev)
 
 ~XBox ()
 
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 Member Functions inherited from eeros::Thread
 Thread ()
 
virtual ~Thread ()
 
virtual std::string getId () const
 
virtual void join ()
 

Public Attributes

XBoxState last
 
XBoxState current
 

Additional Inherited Members

- Protected Member Functions inherited from eeros::Thread
 Thread (std::function< void()> t)
 
- Protected Attributes inherited from eeros::Thread
std::thread t
 
eeros::logger::Logger log
 

Constructor & Destructor Documentation

XBox::XBox ( std::string  dev)
explicit
XBox::~XBox ( )

Member Function Documentation

std::string XBox::name ( )
virtual
void XBox::on_axis ( std::function< void(int, double)>  action)
virtual
void XBox::on_button ( std::function< void(int, bool)>  action)
virtual
void XBox::on_event ( std::function< void(struct js_event)>  action)
virtual

Member Data Documentation

XBoxState eeros::hal::XBox::current
XBoxState eeros::hal::XBox::last

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