aboutsummaryrefslogtreecommitdiff
path: root/hidio.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-01-01 02:17:27 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-01-01 02:17:27 +0000
commitf39bb01ba3c81af91b76ea6b36bd318845cd77de (patch)
tree94e96ba7a745a9a05b7216553e096c9e3b46aa26 /hidio.h
parent5e357ed1cc0c85e950d6ab5fc27d249df7fae2bf (diff)
The output message is pre-generated by hidio_build_element_list() and stored
in t_hid_element->output_message. Then just the value is updated. This saves a bit of CPU time since this is run for every event that is output. Previously, for each event outputted, it had to allocate a t_atom[3] and run a SETSYMBOL for the name and a SETFLOAT for the instance. svn path=/trunk/externals/io/hidio/; revision=7117
Diffstat (limited to 'hidio.h')
-rw-r--r--hidio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hidio.h b/hidio.h
index 907ecb3..ab7ebc8 100644
--- a/hidio.h
+++ b/hidio.h
@@ -42,7 +42,7 @@ typedef void t_clock;
#define HIDIO_MAJOR_VERSION 0
#define HIDIO_MINOR_VERSION 0
-/* static char *version = "$Revision: 1.13 $"; */
+/* static char *version = "$Revision: 1.14 $"; */
/*------------------------------------------------------------------------------
* MACRO DEFINES
@@ -151,6 +151,7 @@ typedef struct _hid_element
t_int min; // from device report
t_int max; // from device report
t_float instance; // usage page/usage instance # (e.g. [absolute x 2 163( )
+ t_atom output_message[3]; // pre-generated message for hidio_output_event()
t_int value; // output the sum of events in a poll for relative axes
t_int previous_value; //only output on change on abs and buttons
} t_hid_element;