orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
evdevutil.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCA2_HUMANINPUT2D_JOYSTICK_EVDEVUTIL_H 00012 #define ORCA2_HUMANINPUT2D_JOYSTICK_EVDEVUTIL_H 00013 00014 #include <string> 00015 00016 namespace humaninput2djoystick 00017 { 00018 00019 // Throws std::string with error when something goes wrong. 00020 void findUSBJoystick( std::string& joystickDevice ); 00021 00022 // Functions to help debug things. 00023 void printInputType( const char *dev ); 00024 void printDeviceInfo( const char *dev ); 00025 00026 int devSupportsAbsoluteAxes( const char *dev, bool &supportsAbsoluteAxes ); 00027 int devIsUSB( const char *dev, bool &isUSB ); 00028 00029 // returns 0 on success 00030 // Caller should have allocated at least nameSize to name. 00031 int devName( const char *dev, char *name, int nameSize=256 ); 00032 00033 } // namespace 00034 00035 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)