Hi, I cannot figure out to to extract the mouse position from HidMsg. I've looked at C++ code and there are four elements passed through the "idata" array and two through "fdata", I don't understand how can I access those values in Chuck. So far I can access only one value from "idata" or "fdata" in Chuck and I cannot figure out what it is. Alexey
sön 2008-02-10 klockan 01:34 -0500 skrev Alexey Kondratiev:
Hi, I cannot figure out to to extract the mouse position from HidMsg. I've looked at C++ code and there are four elements passed through the "idata" array and two through "fdata", I don't understand how can I access those values in Chuck. So far I can access only one value from "idata" or "fdata" in Chuck and I cannot figure out what it is.
You can't get the exact mouse x/y positions in chuck (like supercollider's mouseX mouseY, or something like that). On the other hand, you can track mouse-motion as described here: http://chuck.cs.princeton.edu/doc/examples/hid/mouse-fm.ck Hope that helps, Gasten
participants (2)
-
Alexey Kondratiev
-
Martin Ahnelöv