From e961c094b31ef51858974ce1d881a2a21104bd7a Mon Sep 17 00:00:00 2001 From: Olaf Matthes Date: Tue, 2 Jan 2007 22:00:00 +0000 Subject: added plattform_specific_new and a pointer to my Windows specific stuff in t_hid struct svn path=/trunk/externals/io/hidio/; revision=7128 --- hidio.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'hidio.c') diff --git a/hidio.c b/hidio.c index 8503220..087c384 100644 --- a/hidio.c +++ b/hidio.c @@ -397,9 +397,9 @@ static void hidio_close(t_hidio *x) */ static void hidio_open(t_hidio *x, t_symbol *s, int argc, t_atom *argv) { - debug_post(LOG_DEBUG,"hid_%s",s->s_name); short new_device_number = get_device_number_from_arguments(argc, argv); t_int started = x->x_started; // store state to restore after device is opened + debug_post(LOG_DEBUG,"hid_%s",s->s_name); if (new_device_number > -1) { @@ -554,10 +554,9 @@ static void *hidio_new(t_symbol *s, int argc, t_atom *argv) x->x_started = 0; x->x_delay = DEFAULT_DELAY; for(i=0; ix_fd = INVALID_HANDLE_VALUE; -#endif /* _WIN32 */ - +#ifdef _WINDOWS + x->x_hid_device = hidio_platform_specific_new(x); +#endif x->x_device_number = get_device_number_from_arguments(argc, argv); x->x_instance = hidio_instance_count; -- cgit v1.2.1