If my operation takes an 8th of a second to complete, then by the end of the first event i've accumulated dozens of events in the que, which now must play out one at a time.
To see this problem, open the 3DxValuesCarbon example, and change this line:
line 149: from this:
----------------
TdxComputeAxes(msg->axis);
----------------
to this:
----------------
#define kMicroSecPerSec 1000000
TdxComputeAxes(msg->axis);
usleep(0.25 * kMicroSecPerSec);
----------------
Now, when you run, twiddle the cap and let go --> it takes forever for the events to catch up to "now"
So what I'd like to do is this:
----------------
#define kMicroSecPerSec 1000000
TdxComputeAxes(msg->axis);
usleep(0.25 * kMicroSecPerSec);
ConnexionControl(kConnexionCtlFlushEvents, 0, &resultI);
----------------
how do i do this??
or: how do i correctly discard all the events except for the one happening RIGHT NOW ?

