This patch adds the emulation for a serial Genius mouse using Mouse Systems protocol (5bytes) [1]. This protocol is compatible with most 3-buttons serial mouse.
This work was developed for qemu-1.1.0 and rebased on master. To test this patch you need to start qemu with "-serial gnmouse". Then you need to start gpm (general purpose mouse) on Linux: # gpm -m /dev/ttyS0 -T -t msc I validated the emulation by comparing frames with a real mouse Genius (GM-6) with a USB-serial adapter (ttyUSB0). I also tested with a CDOS operating system. Best regards, Romain Naour [1] MSC protocol: http://www.zimmers.net/anonftp/pub/cbm/documents/projects/interfaces/mouse/Mouse.html#serial Romain Naour (1): genius: add genius serial mouse emulation backends/Makefile.objs | 2 +- backends/gnmouse.c | 339 +++++++++++++++++++++++++++++++++++++++++++++++++ include/sysemu/char.h | 3 + qapi-schema.json | 1 + qemu-char.c | 4 + qemu-options.hx | 10 ++ 6 files changed, 358 insertions(+), 1 deletion(-) create mode 100644 backends/gnmouse.c -- 1.8.4.2