aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-30 02:05:15 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-05-30 02:05:15 +0000
commit2f90ef564c3c287f38d6c86e98024cbeb9c1075c (patch)
treeab2921fe5aa45e3e5f2f01b0aebb6cf89a339714
parent30c3aca19c8b7134622b5ee063bbfc51ad947397 (diff)
added default device for when obj is specified without arguments
svn path=/trunk/externals/hcs/; revision=1789
-rw-r--r--linuxevent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxevent.c b/linuxevent.c
index 1ea0305..40fa40c 100644
--- a/linuxevent.c
+++ b/linuxevent.c
@@ -2,7 +2,7 @@
#define LINUXEVENT_DEVICE "/dev/input/event0"
-static char *version = "$Revision: 1.7 $";
+static char *version = "$Revision: 1.8 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -236,6 +236,7 @@ static void *linuxevent_new(t_symbol *s) {
x->x_read_ok = 1;
x->x_started = 0;
x->x_delay = DEFAULT_DELAY;
+ x->x_devname = gensym(LINUXEVENT_DEVICE);
x->x_clock = clock_new(x, (t_method)linuxevent_read);