hw/char/escc: convert Sun mouse to use QemuInputHandler
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 4 Sep 2024 10:23:01 +0000 (11:23 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Sep 2024 18:11:13 +0000 (20:11 +0200)
commit34acb67f0309fca2ae1921fd0df9f0a217a7a92f
tree2498b54231ac36ba36651115013d41af0bba1008
parent3a0b75880a05088af176523ce820ef0e0a1d2317
hw/char/escc: convert Sun mouse to use QemuInputHandler

Update the Sun mouse implementation to use QemuInputHandler instead of the
legacy qemu_add_mouse_event_handler() function.

Note that this conversion adds extra sunmouse_* members to ESCCChannelState
but they are not added to the migration stream (similar to the Sun keyboard
members). If this were desired in future, the Sun devices should be split
into separate devices and added to the migration stream there instead.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2518
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Carl Hauser <chauser@pullman.com>
Message-ID: <20240904102301.175706-1-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/char/escc.c
include/hw/char/escc.h