BaseJoystick.hpp
Go to the documentation of this file.
00001 /*
00002  * BaseJoystick.hpp
00003  *
00004  *  Created on: Oct 25, 2011
00005  *      Author: mriedel
00006  */
00007 
00008 #ifndef BASEJOYSTICK_HPP_
00009 #define BASEJOYSTICK_HPP_
00010 
00011 #include <telekyb_defines/telekyb_defines.hpp>
00012 
00013 #include <string>
00014 
00015 namespace TELEKYB_NAMESPACE
00016 {
00017 
00018 class BaseJoystick {
00019 protected:
00020         int joystick_fd;
00021         std::string devPath;
00022 
00023 
00024 public:
00025         BaseJoystick(const std::string& devPath_, bool autoOpen = true);
00026         virtual ~BaseJoystick();
00027 
00028         bool openJoystick();
00029         bool isOpen();
00030         void closeJoystick();
00031 };
00032 
00033 }
00034 #endif /* BASEJOYSTICK_HPP_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


telekyb_joystick
Author(s): Martin Riedel
autogenerated on Mon Nov 11 2013 11:14:39