aboutsummaryrefslogtreecommitdiff
path: root/cyclone/hammer/MouseState.c
diff options
context:
space:
mode:
Diffstat (limited to 'cyclone/hammer/MouseState.c')
-rw-r--r--cyclone/hammer/MouseState.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cyclone/hammer/MouseState.c b/cyclone/hammer/MouseState.c
index 3b831bf..260cde2 100644
--- a/cyclone/hammer/MouseState.c
+++ b/cyclone/hammer/MouseState.c
@@ -132,6 +132,7 @@ void MouseState_setup(void)
(t_newmethod)MouseState_new,
(t_method)MouseState_free,
sizeof(t_MouseState), 0, 0);
+ class_addcreator((t_newmethod)MouseState_new, gensym("mousestate"), 0, 0);
class_addanything(MouseState_class, MouseState_anything);
class_addmethod(MouseState_class, (t_method)MouseState_doup,
gensym("_up"), A_FLOAT, 0);
@@ -151,3 +152,8 @@ void MouseState_setup(void)
class_addmethod(MouseState_class, (t_method)MouseState_reset,
gensym("reset"), 0);
}
+
+void mousestate_setup(void)
+{
+ MouseState_setup();
+}