| feat: add inputDevice.bindToDisplay API for binding input devices to displays Add the bindToDisplay API that allows system applications to bind external input devices (USB/Bluetooth) to specific displays. The bound device's events (key and pointer) are routed to the target display. Also improve error codes for SetDisplayBind to return specific codes for display-not-found, device-not-found, and unsupported-device scenarios. The displayId parameter uses int (i32) to match the underlying IPC type. Event dispatch binding is applied via a common ApplyBoundDisplayId function called at each device entry point (mouse/touchpad/joystick/keyboard) before displayId is used for business logic, associating events with the display group of the bound display. Co-Authored-By: Agent 🤖 AI[14%] 🔧 Human Fixed[0%] 🧑 Human[86%] 👌 AI Adopted[100%] Change-Id: I65239653d5a4611fd949587f60b58d3e48f13cc7 Signed-off-by: xueyuanzhao <zhaoxueyuan@huawei.com> Signed-off-by: zhaoxueyuan <zhaoxueyuan@huawei.com> | 10 小时前 |