aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-04-16 16:53:15 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-04-16 16:53:15 +0000
commit0ba8106ab90712f82542c9b956a4527d74b405c0 (patch)
tree8c693d794580496abefefdd608149d442f7634bb
parentd5a7b191fb9f85598096f039c0cd505ec461f974 (diff)
cast input_event.value as (int) and negatives work; why do they declare it unsigned int if they expect negatives?
svn path=/trunk/externals/hcs/; revision=568
-rw-r--r--rawmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rawmouse.c b/rawmouse.c
index 054730b..763aae0 100644
--- a/rawmouse.c
+++ b/rawmouse.c
@@ -292,7 +292,7 @@ static int rawmouse_read(t_rawmouse *x,int fd)
axis_num = 2;
break;
}
- outlet_float (x->x_axis_out[axis_num], x->x_input_event.value);
+ outlet_float (x->x_axis_out[axis_num], (int)x->x_input_event.value);
}
return 1;