diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-12-16 22:25:22 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:08:25 +0200 |
commit | 110c6fbdaac1a56dddb6c978eb7a89c195758286 (patch) | |
tree | de8182dc60d35adf4fba4ffbd7d0925a9d7b3e86 | |
parent | f584b800ba1069616625dfe34fdf68d0eafda672 (diff) |
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
-rw-r--r-- | wiiremote/aka.wiiremote.c | 10 | ||||
-rw-r--r-- | 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 <unistd.h> + // this type is used a lot (data array): typedef unsigned char darr[]; |