From 6a09f91f040478f774cdc1e729a59b59b47a07cf Mon Sep 17 00:00:00 2001 From: s-qin Date: Tue, 8 Sep 2026 05:58:12 +0800 Subject: [PATCH] fix(hid): advertise composite input device for iPadOS pointer support --- guest/openspan_ble.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/guest/openspan_ble.py b/guest/openspan_ble.py index 7322c96..aeedbd2 100644 --- a/guest/openspan_ble.py +++ b/guest/openspan_ble.py @@ -355,7 +355,12 @@ def GetAll(self, interface): "ServiceUUIDs": dbus.Array( ["00001812-0000-1000-8000-00805f9b34fb"], signature="s"), "LocalName": dbus.String("OpenSpan Keyboard"), - "Appearance": dbus.UInt16(0x03C1), # HID Keyboard + "Appearance": dbus.UInt16(0x03C0), # Generic HID -- this device + # is a Keyboard + Mouse + # composite, not a plain + # keyboard: 0x03C0 makes + # iPadOS expose its pointer + # without AssistiveTouch "Discoverable": dbus.Boolean(True), "IncludeTxPower": dbus.Boolean(True), # Advertise FAST (ms) so the iPad discovers us quickly instead of