aboutsummaryrefslogtreecommitdiff
path: root/linuxjoystick.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-04-25 23:42:19 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-04-25 23:42:19 +0000
commitef225031e908307c66a2ac1a194fd3f5bcc94acd (patch)
tree5128cc099a8d18ee60db132c88e932e9ce872451 /linuxjoystick.c
parent1ce8478377a04820260f0803d239b9cf84b912c2 (diff)
cleaned out leftover cruft; added CVS keyword; put all includes into linuxhid.h
svn path=/trunk/externals/hcs/; revision=595
Diffstat (limited to 'linuxjoystick.c')
-rw-r--r--linuxjoystick.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/linuxjoystick.c b/linuxjoystick.c
index ceb4edd..b64588c 100644
--- a/linuxjoystick.c
+++ b/linuxjoystick.c
@@ -1,33 +1,9 @@
-
-#include <m_imp.h>
-
-#ifdef NT
-#pragma warning( disable : 4244 )
-#pragma warning( disable : 4305 )
-#endif
-
-#include <linux/input.h>
-
-#include <sys/stat.h>
-
-#include <string.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/fcntl.h>
-#include <sys/ioctl.h>
-#include <unistd.h>
-#include <termios.h>
-
#include "linuxhid.h"
-#define DEBUG(x)
-/*#define DEBUG(x) x */
-
-
#define LINUXJOYSTICK_DEVICE "/dev/input/event0"
-
#define LINUXJOYSTICK_AXES 6
-#define LINUXJOYSTICK_BUTTONS 9
+
+static char *version = "$Revision: 1.2 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -45,10 +21,9 @@ typedef struct _linuxjoystick {
t_outlet *x_button_num_out;
t_outlet *x_button_val_out;
t_clock *x_clock;
- double x_delaytime;
unsigned char x_buttons;
unsigned char x_axes;
-}t_linuxjoystick;
+} t_linuxjoystick;
/*------------------------------------------------------------------------------
* IMPLEMENTATION