diff options
author | Olaf Matthes <olafmatt@users.sourceforge.net> | 2007-01-02 22:00:00 +0000 |
---|---|---|
committer | Olaf Matthes <olafmatt@users.sourceforge.net> | 2007-01-02 22:00:00 +0000 |
commit | e961c094b31ef51858974ce1d881a2a21104bd7a (patch) | |
tree | 05fef11882cb828b9152789fca962a5f2a3bab2d /hidio.h | |
parent | b0bcd9b29958f455d0fdda415a0ab0510bcd0a1f (diff) |
added plattform_specific_new and a pointer to my Windows specific stuff in t_hid struct
svn path=/trunk/externals/io/hidio/; revision=7128
Diffstat (limited to 'hidio.h')
-rw-r--r-- | hidio.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -42,7 +42,7 @@ typedef void t_clock; #define HIDIO_MAJOR_VERSION 0 #define HIDIO_MINOR_VERSION 0 -/* static char *version = "$Revision: 1.17 $"; */ +/* static char *version = "$Revision: 1.18 $"; */ /*------------------------------------------------------------------------------ * MACRO DEFINES @@ -82,7 +82,7 @@ typedef struct _hidio void *x_obex; #endif #ifdef _WIN32 - HANDLE x_fd; + void *x_hid_device; #endif #ifdef __linux__ t_int x_fd; @@ -186,7 +186,8 @@ extern void hidio_build_device_list(void); extern void hidio_get_events(t_hidio *x); extern void hidio_print(t_hidio* x); /* print info to the console */ extern void hidio_platform_specific_info(t_hidio* x); /* device info on the status outlet */ -extern void hidio_platform_specific_free(t_hidio *x); +extern void hidio_platform_specific_free(t_hidio *x);
+extern void *hidio_platform_specific_new(t_hidio *x); extern short get_device_number_by_id(unsigned short vendor_id, unsigned short product_id); /* TODO: this function should probably accept the single unsigned for the combined usage_page and usage, instead of two separate variables */ extern short get_device_number_from_usage(short device_number, @@ -194,8 +195,8 @@ extern short get_device_number_from_usage(short device_number, unsigned short usage); /* cross-platform force feedback functions */ -extern void hidio_ff_autocenter(t_hidio *x, t_float value); -extern void hidio_ff_gain(t_hidio *x, t_float value); +extern t_int hidio_ff_autocenter(t_hidio *x, t_float value); +extern t_int hidio_ff_gain(t_hidio *x, t_float value); extern t_int hidio_ff_motors(t_hidio *x, t_float value); extern t_int hidio_ff_continue(t_hidio *x); extern t_int hidio_ff_pause(t_hidio *x); |