Update of /cvsroot/pure-data/externals/io/wiiremote In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5611/io/wiiremote
Modified Files: aka.wiiremote.c wiiremote.c Log Message: cleaned things up a bit (less compiler warnings) and added to the auto-build as part of the 'io' libdir
Index: wiiremote.c =================================================================== RCS file: /cvsroot/pure-data/externals/io/wiiremote/wiiremote.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wiiremote.c 16 Dec 2006 22:03:43 -0000 1.1 --- wiiremote.c 16 Dec 2006 22:25:22 -0000 1.2 *************** *** 5,8 **** --- 5,10 ---- #include "wiiremote.h"
+ #include <unistd.h> + // this type is used a lot (data array): typedef unsigned char darr[];
Index: aka.wiiremote.c =================================================================== RCS file: /cvsroot/pure-data/externals/io/wiiremote/aka.wiiremote.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** aka.wiiremote.c 16 Dec 2006 22:03:43 -0000 1.1 --- aka.wiiremote.c 16 Dec 2006 22:25:22 -0000 1.2 *************** *** 239,249 **** t_atom list[4]; SETLONG(list, x->wiiremote->isLED1Illuminated); SETLONG(list + 1, x->wiiremote->isLED2Illuminated); SETLONG(list + 2, x->wiiremote->isLED3Illuminated); SETLONG(list + 3, x->wiiremote->isLED4Illuminated); - #ifdef PD - outlet_anything(x->statusOut, gensym("ledstatus"), 4, list); - #else /* Max */ outlet_anything(x->statusOut, gensym("ledstatus"), 4, &list); #endif --- 239,253 ---- t_atom list[4]; + #ifdef PD + SETFLOAT(list, x->wiiremote->isLED1Illuminated); + SETFLOAT(list + 1, x->wiiremote->isLED2Illuminated); + SETFLOAT(list + 2, x->wiiremote->isLED3Illuminated); + SETFLOAT(list + 3, x->wiiremote->isLED4Illuminated); + outlet_anything(x->statusOut, gensym("ledstatus"), 4, list); + #else /* Max */ SETLONG(list, x->wiiremote->isLED1Illuminated); SETLONG(list + 1, x->wiiremote->isLED2Illuminated); SETLONG(list + 2, x->wiiremote->isLED3Illuminated); SETLONG(list + 3, x->wiiremote->isLED4Illuminated); outlet_anything(x->statusOut, gensym("ledstatus"), 4, &list); #endif