aboutsummaryrefslogtreecommitdiff
path: root/cursor.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-08 01:36:03 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-08 01:36:03 +0000
commit5a3a9081818218cd8b04746a51b7df12f8f55df0 (patch)
tree1a1c7fb867a86626bfd0f5cfb7e04c174b11dbc2 /cursor.c
parente1409604f867502d7e420489787a95d9bf995e55 (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.c8
1 files changed, 4 insertions, 4 deletions
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 <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);