diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-08 01:36:03 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-08 01:36:03 +0000 |
commit | 5a3a9081818218cd8b04746a51b7df12f8f55df0 (patch) | |
tree | 1a1c7fb867a86626bfd0f5cfb7e04c174b11dbc2 /cursor.c | |
parent | e1409604f867502d7e420489787a95d9bf995e55 (diff) |
bind to . instead of all to get absolute cursor position rather than canvas cursor position
svn path=/trunk/externals/hcs/; revision=8956
Diffstat (limited to 'cursor.c')
-rw-r--r-- | cursor.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 <ButtonPress> {+pd [concat %s button %%b 1 \\;]}\n", + sys_vgui("bind . <ButtonPress> {+pd [concat %s button %%b 1 \\;]}\n", x->receive_symbol->s_name); - sys_vgui("bind all <ButtonRelease> {+pd [concat %s button %%b 0 \\;]}\n", + sys_vgui("bind . <ButtonRelease> {+pd [concat %s button %%b 0 \\;]}\n", x->receive_symbol->s_name); - sys_vgui("bind all <MouseWheel> {+pd [concat %s wheel %%D \\;]}\n", + sys_vgui("bind . <MouseWheel> {+pd [concat %s wheel %%D \\;]}\n", x->receive_symbol->s_name); return(x); |