Event 39 is EVT_MTSYNC, for multi-touch handling, par2 is touch count. Full information about the event is obtained with GetTouchInfo() function, it returns an array of iv_mtinfo structures. Here is an example:
iv_mtinfo *mti = GetTouchInfo();
int tcnt = par2;
int cx = (tcnt > 1) ? (mti[0].x + mti[1].x) / 2 : mti[0].x;
int cy = (tcnt > 1) ? (mti[0].y + mti[1].y) / 2 : mti[0].y;
Event 44 is EVT_POINTERDRAG, like EVT_POINTERMOVE but with some dead zone, to filter accidental finger move.
|