add z & w joystick values to sender
This commit is contained in:
@@ -22,6 +22,19 @@ if (verbosity > 2) {
|
||||
return foo;
|
||||
}
|
||||
/* ----------------------------------------------------------------- */
|
||||
/* function added Sun Mar 31 18:51:46 UTC 2024 */
|
||||
int send_data_zw(lo_address dst, int w, int z)
|
||||
{
|
||||
int foo;
|
||||
|
||||
if (verbosity) fprintf(stderr, "sending w z %7d %7d\n", w, z);
|
||||
foo = lo_send(dst, "/joystick/wz", "ii", w, z);
|
||||
if (verbosity > 2) {
|
||||
fprintf(stderr, "lo_send -> %d\n", foo);
|
||||
}
|
||||
return foo;
|
||||
}
|
||||
/* ----------------------------------------------------------------- */
|
||||
int send_data_button(lo_address dst, int n, int v)
|
||||
{
|
||||
int foo;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
/* ------------------------------------------------------- */
|
||||
|
||||
int send_data_xy(lo_address dst, int x, int y);
|
||||
int send_data_zw(lo_address dst, int w, int z);
|
||||
int send_data_button(lo_address dst, int n, int v);
|
||||
int send_data_id(lo_address dst, char *s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user