From 5a3a9081818218cd8b04746a51b7df12f8f55df0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 8 Nov 2007 01:36:03 +0000 Subject: bind to . instead of all to get absolute cursor position rather than canvas cursor position svn path=/trunk/externals/hcs/; revision=8956 --- cursor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cursor.c') diff --git a/cursor.c b/cursor.c index 3198fcd..52a9409 100644 --- a/cursor.c +++ b/cursor.c @@ -79,7 +79,7 @@ static void cursor_free(t_cursor *x) //TODO free the "bind all" } -static void *cursor_new(t_symbol *s) +static void *cursor_new(void) { char buf[MAXPDSTRING]; t_cursor *x = (t_cursor *)pd_new(cursor_class); @@ -92,11 +92,11 @@ static void *cursor_new(t_symbol *s) x->data_outlet = outlet_new(&x->x_obj, 0); x->status_outlet = outlet_new(&x->x_obj, 0); - sys_vgui("bind all {+pd [concat %s button %%b 1 \\;]}\n", + sys_vgui("bind . {+pd [concat %s button %%b 1 \\;]}\n", x->receive_symbol->s_name); - sys_vgui("bind all {+pd [concat %s button %%b 0 \\;]}\n", + sys_vgui("bind . {+pd [concat %s button %%b 0 \\;]}\n", x->receive_symbol->s_name); - sys_vgui("bind all {+pd [concat %s wheel %%D \\;]}\n", + sys_vgui("bind . {+pd [concat %s wheel %%D \\;]}\n", x->receive_symbol->s_name); return(x); -- cgit v1.2.1