fix unusable touch by adding touch identifier into touchPosition

This commit is contained in:
XProger 2019-01-02 04:25:03 +03:00 committed by fincs
parent e708372dca
commit f589310ef2
2 changed files with 2 additions and 0 deletions

View File

@ -325,6 +325,7 @@ typedef enum
typedef struct touchPosition
{
u32 id;
u32 px;
u32 py;
u32 dx;

View File

@ -472,6 +472,7 @@ void hidTouchRead(touchPosition *pos, u32 point_id) {
return;
}
pos->id = g_touchEntry.touches[point_id].touchIndex;
pos->px = g_touchEntry.touches[point_id].x;
pos->py = g_touchEntry.touches[point_id].y;
pos->dx = g_touchEntry.touches[point_id].diameterX;