OSDN Git Service

hw/i386/vmmouse:add relative packet flag for button status
authorZongmin Zhou <zhouzongmin@kylinos.cn>
Thu, 13 Apr 2023 08:15:26 +0000 (16:15 +0800)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 7 Aug 2023 11:50:31 +0000 (15:50 +0400)
commitfdd649538e6c6c9ef99082cb74cc36dbb6b9f953
treee7912f21a6285bbcb2cb8e70e38ee339bb134e52
parent8a64609eea8cb2bac015968c4b62da5bce266e22
hw/i386/vmmouse:add relative packet flag for button status

The buttons value use macros instead of direct numbers.

If request relative mode, have to add this for
guest vmmouse driver to judge this is a relative packet.
otherwise,vmmouse driver will not match
the condition 'status & VMMOUSE_RELATIVE_PACKET',
and can't report events on the correct(relative) input device,
result to relative mode unuseful.

Signed-off-by: Zongmin Zhou<zhouzongmin@kylinos.cn>
Message-ID: <20230413081526.2229916-1-zhouzongmin@kylinos.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/i386/vmmouse.c