[PD-cvs] SF.net SVN: pure-data: [9771] trunk/externals/io/hidio/hidio_linux.c

zmoelnig at users.sourceforge.net zmoelnig at users.sourceforge.net
Wed May 7 18:16:24 CEST 2008


Revision: 9771
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9771&view=rev
Author:   zmoelnig
Date:     2008-05-07 09:16:23 -0700 (Wed, 07 May 2008)

Log Message:
-----------
i don't claim that everything here is as it should be; but at least it compiles again...
(and input seems to work; i have not been able to do the keyboard-led thing, however)

Modified Paths:
--------------
    trunk/externals/io/hidio/hidio_linux.c

Modified: trunk/externals/io/hidio/hidio_linux.c
===================================================================
--- trunk/externals/io/hidio/hidio_linux.c	2008-05-07 12:18:17 UTC (rev 9770)
+++ trunk/externals/io/hidio/hidio_linux.c	2008-05-07 16:16:23 UTC (rev 9771)
@@ -72,7 +72,7 @@
 		snprintf(hidio_code, MAXPDSTRING,"btn_%d",linux_code - BTN_WHEEL);
 	    else return 0;
 	}
-    return gensym(hidio_code ? hidio_code : "?");
+    return gensym(*hidio_code ? hidio_code : "?");
 }
 
 /* Georg Holzmann: implementation of the keys */
@@ -274,7 +274,7 @@
     for(i=0;i<128;++i) 
 	{
 	    snprintf(dev_handle_name, MAXPDSTRING, "/dev/input/event%d", i);
-	    if(dev_handle_name) 
+	    if(*dev_handle_name) 
 		{
 		    /* open the device read-only, non-exclusive */
 		    fd = open (dev_handle_name, O_RDONLY | O_NONBLOCK);
@@ -451,7 +451,7 @@
     x->x_device_number = device_number;
     snprintf(block_device,MAXPDSTRING,"/dev/input/event%d",x->x_device_number);
 
-    if(block_device) 
+    if(*block_device) 
 	{
 	    /* open the device read-only, non-exclusive */
 	    //        x->x_fd = open(block_device, O_RDONLY | O_NONBLOCK);
@@ -589,8 +589,24 @@
     return -1;
 }
 
+void hidio_write_event_symbol_int(t_hidio *x, t_symbol *type, t_int code, 
+                                    t_int instance, t_int value)
+{
+	debug_post(LOG_DEBUG,"hidio_write_event_symbol_int");
+}
+void hidio_write_event_symbols(t_hidio *x, t_symbol *type, t_symbol *code, 
+                              t_int instance, t_int value)
+{
+	debug_post(LOG_DEBUG,"hidio_write_event_symbols");
+}
 
-void hidio_write_event(t_hidio *x, t_symbol *type, t_symbol *code, 
+void hidio_write_event_ints(t_hidio *x, t_int type, t_int code, 
+                              t_int instance, t_int value)
+{
+	debug_post(LOG_DEBUG,"hidio_write_event_ints");
+}
+
+void hidio_write_event_JMZ(t_hidio *x, t_symbol *type, t_symbol *code, 
 		       t_float instance, t_float value)
 {
     struct input_event write_event;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list