View Single Post
Old 11-27-2012, 03:46 AM   #2
DmitryZ
Junior Member
DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.DmitryZ can tame squirrels without the assistance of a chair or a whip.
 
Posts: 2
Karma: 11426
Join Date: Mar 2010
Device: PocketBook 301+
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.
DmitryZ is offline   Reply With Quote