UNITY-PLUGIN
UNITY-PLUGIN copied to clipboard
setDataStreaming signature issue, wrong type for sensorMask
this is wrong; sensorMask should be cast to (long) otherwise one gets a JNI signature exception
override public void SetDataStreaming(ushort divisor, ushort packetFrames, SpheroDataStreamingMask sensorMask, ushort packetCount) { m_UnityBridge.Call("setDataStreaming",m_AndroidJavaSphero, divisor, packetFrames, sensorMask, packetCount); }
compare with m_UnityBridge.Call("enableControllerStreaming",m_AndroidJavaSphero,(int)divisor,(int)packetFrames,(long)sensorMask); where casting is performed...
one can easily fix this in Plugins/Sphero/SpheroAndroid.cs