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

#include <Mouse.hpp>

Inheritance diagram for eeros::hal::Mouse:
Collaboration diagram for eeros::hal::Mouse:

Public Member Functions

 Mouse (std::string dev)
 ~Mouse ()
virtual void on_event (std::function< void(struct input_event)> action)
virtual void on_button (std::function< void(int, bool)> action)
virtual void on_axis (std::function< void(int, signed)> 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

MouseState current
MouseState last

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

Mouse::Mouse ( std::string  dev)
Mouse::~Mouse ( )

Member Function Documentation

std::string Mouse::name ( )
void Mouse::on_axis ( std::function< void(int, signed)>  action)
void Mouse::on_button ( std::function< void(int, bool)>  action)
void Mouse::on_event ( std::function< void(struct input_event)>  action)

Member Data Documentation

MouseState eeros::hal::Mouse::current
MouseState eeros::hal::Mouse::last

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