[Spice-devel] [Qemu-devel] paravirtual tablet v2

Gerd Hoffmann kraxel at redhat.com
Fri Jan 14 06:23:38 PST 2011


>> /*
>> * QEMU_PVTABLET_MSG_BTN_{DOWN,UP}, host -> guest
>> * send button press+release events
>> */
>> typedef struct qemu_pvtablet_button {
>> uint32_t button;
>> uint32_t mask;
>> } qemu_pvtablet_button;
>
> What's the semantic of button and mask? I'd assume that mask is the new
> button mask but then I'm not sure what button is used for.

"button" is the index of the button which was pressed (BTN_DOWN) or 
released (BTN_UP).  "mask" is the new button mask.

cheers,
   Gerd


More information about the Spice-devel mailing list