diff --git a/nx/include/switch/services/hid.h b/nx/include/switch/services/hid.h index b7185afa..d2bd8e84 100644 --- a/nx/include/switch/services/hid.h +++ b/nx/include/switch/services/hid.h @@ -325,6 +325,7 @@ typedef enum typedef struct touchPosition { + u32 id; u32 px; u32 py; u32 dx; diff --git a/nx/source/services/hid.c b/nx/source/services/hid.c index 2e688937..5d29c925 100644 --- a/nx/source/services/hid.c +++ b/nx/source/services/hid.c @@ -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;