aboutsummaryrefslogtreecommitdiff
path: root/hid.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-06-10 20:17:42 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-06-10 20:17:42 +0000
commite07d12e285c5f7c3abcac12fb8413f532e846124 (patch)
tree3270d3d380fffe8a25b1af187ba4cc8db23f4900 /hid.c
parent3252d2cc2c0759898c2d5b3f2ccf228e780406c5 (diff)
- got ff_autocenter and ff_gain working fine, now its time for some actual
effects!! svn path=/trunk/externals/hcs/hid/; revision=3164
Diffstat (limited to 'hid.c')
-rw-r--r--hid.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/hid.c b/hid.c
index 2509d7b..4d01ef5 100644
--- a/hid.c
+++ b/hid.c
@@ -238,6 +238,7 @@ static void *hid_new(t_float f)
#endif
/* init vars */
+ x->x_has_ff = 0;
x->x_device_open = 0;
x->x_started = 0;
x->x_delay = DEFAULT_DELAY;
@@ -285,5 +286,17 @@ void hid_setup(void)
class_addmethod(hid_class,(t_method) hid_start,gensym("poll"),A_DEFFLOAT,0);
class_addmethod(hid_class,(t_method) hid_stop,gensym("stop"),0);
class_addmethod(hid_class,(t_method) hid_stop,gensym("nopoll"),0);
+ /* force feedback messages */
+ class_addmethod(hid_class,(t_method) hid_ff_autocenter,
+ gensym("ff_autocenter"),A_DEFFLOAT,0);
+ class_addmethod(hid_class,(t_method) hid_ff_gain,gensym("ff_gain"),A_DEFFLOAT,0);
+ class_addmethod(hid_class,(t_method) hid_ff_motors,gensym("ff_motors"),A_DEFFLOAT,0);
+ class_addmethod(hid_class,(t_method) hid_ff_continue,gensym("ff_continue"),0);
+ class_addmethod(hid_class,(t_method) hid_ff_pause,gensym("ff_pause"),0);
+ class_addmethod(hid_class,(t_method) hid_ff_reset,gensym("ff_reset"),0);
+ class_addmethod(hid_class,(t_method) hid_ff_stopall,gensym("ff_stopall"),0);
+ /* ff tests */
+ class_addmethod(hid_class,(t_method) hid_ff_fftest,gensym("fftest"),A_DEFFLOAT,0);
+ class_addmethod(hid_class,(t_method) hid_ff_print,gensym("ff_print"),0);
}