[PD-cvs] externals/io/wiiremote wiiremote-help.pd, NONE, 1.1 aka.wiiremote.c, 1.2, 1.3

Hans-Christoph Steiner eighthave at users.sourceforge.net
Sun Dec 17 17:56:23 CET 2006


Update of /cvsroot/pure-data/externals/io/wiiremote
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9450

Modified Files:
	aka.wiiremote.c 
Added Files:
	wiiremote-help.pd 
Log Message:
fixed crasher, I forgot to include init in the Pd end of things

--- NEW FILE: wiiremote-help.pd ---
#N canvas 41 171 573 456 10;
#X obj 451 21 import io;
#X obj 169 251 wiiremote;
#X msg 124 70 connect;
#X msg 141 96 disconnect;
#X msg 242 100 motionsensor \$1;
#X obj 242 78 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 362 78 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 362 100 irsensor \$1;
#X obj 20 117 metro 100;
#X obj 20 96 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 332 153 getbatterylevel;
#X msg 332 173 getledstatus;
#X msg 332 193 getexpansionstatus;
#X msg 85 146 bang;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 4 0;
#X connect 6 0 7 0;
#X connect 7 0 1 0;
#X connect 8 0 1 0;
#X connect 9 0 8 0;
#X connect 10 0 1 0;
#X connect 11 0 1 0;
#X connect 12 0 1 0;
#X connect 13 0 1 0;

Index: aka.wiiremote.c
===================================================================
RCS file: /cvsroot/pure-data/externals/io/wiiremote/aka.wiiremote.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** aka.wiiremote.c	16 Dec 2006 22:25:22 -0000	1.2
--- aka.wiiremote.c	17 Dec 2006 16:56:21 -0000	1.3
***************
*** 116,122 ****
  {
  	t_atom list[4]; 
! 	
! 	if (x->wiiremote->device == nil)
  		return;	// do nothing
  
  #ifdef PD
--- 116,125 ----
  {
  	t_atom list[4]; 
! 
! 	if (x->wiiremote->device == nil) 
! 	{
! 		post("warning: your WiiRemote is not connected");
  		return;	// do nothing
+ 	}
  
  #ifdef PD
***************
*** 320,323 ****
--- 323,328 ----
  #ifdef PD
  	t_akawiiremote *x = (t_akawiiremote *)pd_new(wiiremote_class);
+ 
+ 	x->wiiremote = wiiremote_init();
  	
  	x->clock = clock_new(x, (t_method)akawiiremote_clock);





More information about the Pd-cvs mailing list