From 110c6fbdaac1a56dddb6c978eb7a89c195758286 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 16 Dec 2006 22:25:22 +0000 Subject: cleaned things up a bit (less compiler warnings) and added to the auto-build as part of the 'io' libdir svn path=/trunk/externals/io/; revision=6925 --- wiiremote/aka.wiiremote.c | 10 +++++++--- wiiremote/wiiremote.c | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/wiiremote/aka.wiiremote.c b/wiiremote/aka.wiiremote.c index 4ec6ad0..6ad24d9 100644 --- a/wiiremote/aka.wiiremote.c +++ b/wiiremote/aka.wiiremote.c @@ -238,13 +238,17 @@ void akawiiremote_getledstatus(t_akawiiremote *x) { 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); -#ifdef PD - outlet_anything(x->statusOut, gensym("ledstatus"), 4, list); -#else /* Max */ outlet_anything(x->statusOut, gensym("ledstatus"), 4, &list); #endif } diff --git a/wiiremote/wiiremote.c b/wiiremote/wiiremote.c index 13b1ea6..35acd03 100644 --- a/wiiremote/wiiremote.c +++ b/wiiremote/wiiremote.c @@ -4,6 +4,8 @@ #include "wiiremote.h" +#include + // this type is used a lot (data array): typedef unsigned char darr[]; -- cgit v1.2.1