aboutsummaryrefslogtreecommitdiff
path: root/rawmouse.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-04-16 18:27:45 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-04-16 18:27:45 +0000
commit0bdd4371866a17df519325eb71cb18634e166231 (patch)
tree1995b6d48b62165045090365676da17ccaaa5ade /rawmouse.c
parent337f318100b5682970064df5d2139addff68378f (diff)
added a help message and a warning in the console
svn path=/trunk/externals/hcs/; revision=570
Diffstat (limited to 'rawmouse.c')
-rw-r--r--rawmouse.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/rawmouse.c b/rawmouse.c
index 763aae0..091465e 100644
--- a/rawmouse.c
+++ b/rawmouse.c
@@ -2,6 +2,7 @@
#include <m_imp.h>
+
#ifdef NT
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
@@ -32,7 +33,6 @@
#define RAWMOUSE_AXES 3
#define RAWMOUSE_BUTTONS 7
-#define MAX_AXIS_OUTS 5
/* from <linux/input.h>
// button types
@@ -162,9 +162,14 @@ static int rawmouse_open(t_rawmouse *x,t_symbol* s)
rawmouse_close(x);
- /* set obj device name to parameter */
+ /* set obj device name to parameter
+ * otherwise set to default
+ */
if (s != &s_)
x->x_devname = s;
+ else {
+ post("You need to set a input device (i.e /dev/input/event0)");
+ }
/* open device */
if (x->x_devname) {
@@ -229,6 +234,10 @@ static int rawmouse_open(t_rawmouse *x,t_symbol* s)
}
post ("\nUsing %d axes and %d buttons.", x->x_axes, x->x_buttons);
+ post ("WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING");
+ post ("This object is under development! The interface could change at anytime!");
+ post ("As I write cross-platform versions, the interface might have to change.");
+ post ("WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING");
return 1;
}