1-10 / zigsim

Document for ZIGSIMPlus
https://1-10.github.io/zigsim
0 stars 0 forks source link

Not receiving touch double data #35

Open vigliensoni opened 10 months ago

vigliensoni commented 10 months ago

Hi Nice People,

I'm having trouble getting the touch information from Zig Sim on Android over UDP/OSC.

The expected behaviour should be getting

/uuid/touch0 float float float

But I'm only getting zeros for the first two values (i.e., x and y position) as in

/uuid/touch0 0. 0. float

Multifinger and their forces are recognized.

If I use Zig indicator, the values are properly displayed, which may imply this is only a problem of the OSC bundle and not the JSON parser.

Please note that ZigSim wasn't available from the Google Play store, and so I downloaded the APK for version 1.0.1

Thank you!

vigliensoni commented 10 months ago

After digging more, I figured that touch sends a double, double, float vector. As in

20:42:22.602 | RECEIVE    | ENDPOINT([::ffff:10.0.0.235]:45839) ADDRESS(/mp/touch0) DOUBLE(0.6580884015118633) DOUBLE(0.4366860477686809) FLOAT(0.0627451)

Is there any reason for this?