diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-04-25 23:42:19 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-04-25 23:42:19 +0000 |
commit | ef225031e908307c66a2ac1a194fd3f5bcc94acd (patch) | |
tree | 5128cc099a8d18ee60db132c88e932e9ce872451 | |
parent | 1ce8478377a04820260f0803d239b9cf84b912c2 (diff) |
cleaned out leftover cruft; added CVS keyword; put all includes into linuxhid.h
svn path=/trunk/externals/hcs/; revision=595
-rw-r--r-- | linuxevent.c | 25 | ||||
-rw-r--r-- | linuxhid.h | 19 | ||||
-rw-r--r-- | linuxjoystick.c | 31 | ||||
-rw-r--r-- | linuxmouse.c | 30 |
4 files changed, 25 insertions, 80 deletions
diff --git a/linuxevent.c b/linuxevent.c index a112430..c562243 100644 --- a/linuxevent.c +++ b/linuxevent.c @@ -1,31 +1,10 @@ -
-#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 LINUXEVENT_DEVICE "/dev/input/event0"
#define LINUXEVENT_OUTLETS 4
+static char *version = "$Revision: 1.2 $";
+
/*------------------------------------------------------------------------------
* CLASS DEF
*/
@@ -1,3 +1,22 @@ +#include <m_imp.h> + +#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> + + +#define DEBUG(x) +/*#define DEBUG(x) x */ + +static char *version = "$Revision: 1.2 $"; + /*------------------------------------------------------------------------------ * from evtest.c from the ff-utils package */ 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
diff --git a/linuxmouse.c b/linuxmouse.c index 913d35b..da7147e 100644 --- a/linuxmouse.c +++ b/linuxmouse.c @@ -1,35 +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 LINUXMOUSE_DEVICE "/dev/input/event0"
-
#define LINUXMOUSE_AXES 3
-#define LINUXMOUSE_BUTTONS 7
+static char *version = "$Revision: 1.2 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -46,8 +20,6 @@ typedef struct _linuxmouse { t_outlet *x_axis_out[LINUXMOUSE_AXES];
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_linuxmouse;
|