2019-08-29 07:42:57 +11:00
|
|
|
/*
|
2019-08-29 07:39:06 +11:00
|
|
|
-----------------------------------------
|
|
|
|
reception des XY
|
|
|
|
*/
|
|
|
|
|
|
|
|
7777 => int InPort;
|
|
|
|
|
|
|
|
SqrOsc sl => dac.left;
|
|
|
|
SawOsc sr => dac.right;
|
|
|
|
0.0 => sl.gain => sr.gain;
|
|
|
|
|
|
|
|
OscIn oscin;
|
|
|
|
OscMsg msg;
|
|
|
|
|
|
|
|
InPort => oscin.port;
|
|
|
|
oscin.addAddress( "/joystick/xy, ii" );
|
|
|
|
|
|
|
|
int x, y;
|
|
|
|
55 => int base;
|
|
|
|
|
|
|
|
<<< "listening on port", InPort >>>;
|
|
|
|
|
|
|
|
while( true ) {
|
|
|
|
oscin => now;
|
|
|
|
while ( oscin.recv(msg) ) {
|
|
|
|
msg.getInt(0) => x;
|
|
|
|
msg.getInt(1) => y;
|
|
|
|
<<< "got (via ", InPort,") ", x, y >>>;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* made in doubledragon2 by tTh */
|
|
|
|
|