mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
fix unusable touch by adding touch identifier into touchPosition
This commit is contained in:
parent
e708372dca
commit
f589310ef2
@ -325,6 +325,7 @@ typedef enum
|
||||
|
||||
typedef struct touchPosition
|
||||
{
|
||||
u32 id;
|
||||
u32 px;
|
||||
u32 py;
|
||||
u32 dx;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user