diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-06-10 20:17:42 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-06-10 20:17:42 +0000 |
commit | e07d12e285c5f7c3abcac12fb8413f532e846124 (patch) | |
tree | 3270d3d380fffe8a25b1af187ba4cc8db23f4900 /hid.h | |
parent | 3252d2cc2c0759898c2d5b3f2ccf228e780406c5 (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.h')
-rw-r--r-- | hid.h | 42 |
1 files changed, 32 insertions, 10 deletions
@@ -14,7 +14,7 @@ #define HID_MAJOR_VERSION 0 #define HID_MINOR_VERSION 5 -static char *version = "$Revision: 1.15 $"; +static char *version = "$Revision: 1.16 $"; /*------------------------------------------------------------------------------ * CLASS DEF @@ -26,6 +26,8 @@ typedef struct _hid t_object x_obj; t_int x_fd; t_int x_device_number; + t_int x_has_ff; + void *x_ff_device; t_clock *x_clock; t_int x_delay; t_int x_started; @@ -58,14 +60,34 @@ t_int hid_instance_count; */ /* support functions */ -void hid_output_event(t_hid *x, char *type, char *code, t_float value); - -/* generic, cross-platform functions */ -t_int hid_open_device(t_hid *x, t_int device_number); -t_int hid_close_device(t_hid *x); -t_int hid_build_device_list(t_hid* x); -t_int hid_get_events(t_hid *x) ; -void hid_print(t_hid* x); -void hid_platform_specific_free(t_hid *x); +void hid_output_event( t_hid *x, char *type, char *code, t_float value ); + +/* generic, cross-platform functions implemented in a separate file for each + * platform + */ +t_int hid_open_device( t_hid *x, t_int device_number ); +t_int hid_close_device( t_hid *x ); +t_int hid_build_device_list( t_hid* x ); +t_int hid_get_events( t_hid *x ) ; +void hid_print( t_hid* x ); +void hid_platform_specific_free( t_hid *x ); + +/* cross-platform force feedback functions */ +t_int hid_ff_autocenter( t_hid *x, t_float value ); +t_int hid_ff_gain( t_hid *x, t_float value ); +t_int hid_ff_motors( t_hid *x, t_float value ); +t_int hid_ff_continue( t_hid *x ); +t_int hid_ff_pause( t_hid *x ); +t_int hid_ff_reset( t_hid *x ); +t_int hid_ff_stopall( t_hid *x ); +// these are just for testing... +t_int hid_ff_fftest ( t_hid *x, t_float value); + +#include "HID_Utilities_External.h" +void hid_ff_print( t_hid *x ); + + + + #endif /* #ifndef _HID_H */ |