proto: Add support for side mouse buttons

This is the couterpart of spice-protocol commit

    commit cbe7b2c28543f4c5e57d1db1b753b73a64104162 (HEAD -> master, origin/master, origin/HEAD)
    Author: SimonP <simonp.git@gmail.com>

        protocol: Add support for side mouse buttons

        Side mouse buttons currently do not exist in the protocol, causing them
        to be inexplicably ignored by VMs in virt-manager and such. This lays
        the groundwork for fixing that issue.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Acked-by: Kevin Pouget <kpouget@redhat.com>
This commit is contained in:
Frediano Ziglio 2020-08-19 15:20:32 +01:00
parent c39cc1b1ef
commit 243c314b3f

View File

@ -1031,12 +1031,18 @@ enum8 mouse_button {
RIGHT,
UP,
DOWN,
SIDE,
EXTRA,
};
flags16 mouse_button_mask {
LEFT,
MIDDLE,
RIGHT
RIGHT,
UP,
DOWN,
SIDE,
EXTRA,
};
channel InputsChannel : BaseChannel {