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.c | |
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.c')
-rw-r--r-- | hidio.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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; i<MAX_DEVICES; ++i) last_execute_time[i] = 0; -#ifdef _WIN32 - x->x_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; |