| 429 | } |
| 430 | |
| 431 | void PiuTouchLinkAppendSample(PiuTouchLink* link, PiuCoordinate x, PiuCoordinate y, double ticks) |
| 432 | { |
| 433 | PiuTouchSample sample; |
| 434 | if ((*link)->index == piuTouchSampleCount) { |
| 435 | c_memmove(&((*link)->samples[0]), &((*link)->samples[1]), (piuTouchSampleCount - 1) * sizeof(PiuTouchSampleRecord)); |
| 436 | (*link)->index--; |
| 437 | } |
| 438 | sample = &((*link)->samples[(*link)->index]); |
| 439 | sample->x = x; |
| 440 | sample->y = y; |
| 441 | sample->ticks = ticks; |
| 442 | (*link)->index++; |
| 443 | } |
| 444 | |
| 445 | void PiuTouchLinkCreate(xsMachine* the) |
| 446 | { |
no outgoing calls
no test coverage detected