diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-04-16 16:53:15 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-04-16 16:53:15 +0000 |
commit | 0ba8106ab90712f82542c9b956a4527d74b405c0 (patch) | |
tree | 8c693d794580496abefefdd608149d442f7634bb | |
parent | d5a7b191fb9f85598096f039c0cd505ec461f974 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|