Notice a possible bug in onDisplay() in freeglut-3.0.0/progs/demos/multi-touch/multi-touch.c
The nested loops read
for (d = 0; d < NUM_DEVICES; d++) {
int c;
for (c = 0; d < NUM_DEVICES; d++) {
...
}
}
The inner loop should iterate on 'c', not 'd'?
Yes, that does appear to be a copy paste bug. Will submit a fix for review soon.
Thanks for reporting. Should have been for (c = 0; c < NUM_CURSORS; c++). fix comitted in github master, will appear on sf.net svn repo shortly