From 4ece6993fec30530e955593be82700878bbddef1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 14 Oct 2025 13:59:01 -0400 Subject: [PATCH] uikit: Apple Pencil is always a "direct" input device. Fixes #13065. --- src/video/uikit/SDL_uikitpen.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/uikit/SDL_uikitpen.m b/src/video/uikit/SDL_uikitpen.m index 520968163d..366580dcb7 100644 --- a/src/video/uikit/SDL_uikitpen.m +++ b/src/video/uikit/SDL_uikitpen.m @@ -72,6 +72,7 @@ static SDL_PenID UIKit_AddPenIfNecesary() info.max_tilt = 90.0f; info.num_buttons = 0; info.subtype = SDL_PEN_TYPE_PENCIL; + info.device_type = SDL_PEN_DEVICE_TYPE_DIRECT; // Apple Pencil on iOS is always a direct device; it works on the tablet's screen. if (@available(iOS 17.5, *)) { // need rollAngle method. info.capabilities |= SDL_PEN_CAPABILITY_ROTATION;