Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

vrpn_Joylin.h

This is the verbatim text of the vrpn_Joylin.h include file.
/*
# Linux Joystick. Interface to the Linux Joystick driver by Vojtech Pavlik
# included in several Linux distributions. The server code has been tested 
# with Linux Joystick driver version 1.2.14. Yet, there is no way how to
# map a typical joystick's zillion buttons and axes on few buttons and axes
# really used. Unfortunately, even joysticks of the same kind can have 
# different button mappings from one to another.  Driver written by Harald
# Barth (haba@pdc.kth.se).
*/

#ifndef VRPN_JOYLIN
#define VRPN_JOYLIN
#include "vrpn_Analog.h"
#include "vrpn_Button.h"

#ifdef linux
#include <linux/joystick.h>
#endif

class vrpn_Joylin :public vrpn_Analog, public vrpn_Button {
public:
  vrpn_Joylin(char * name, vrpn_Connection * c, char * portname);

  void mainloop(void);

protected:
  int init();
private:
  int namelen;
  int fd;
  int version;
  char *name;
};


#endif

Generated at Fri Sep 13 15:04:15 2002 for vrpn by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999