qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to pass intercepted mouse move x and y from host to a virtual machine running in Qemu
@ 2017-05-20  7:44 Alexander Syvak
  2017-05-22  9:25 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Syvak @ 2017-05-20  7:44 UTC (permalink / raw)
  To: qemu-devel

Hi, guys!

There exists a manually written virtual USB device registered as Qemu type.

It reads 5 bytes

- x and y of a mouse move, x and y of scrolling, and buttons state -

from mouse.fifo but there is no code in the implementation file which would
actually parse those bytes.

First where does Qemu actually parse those bytes?

And the most important - can I actually pass double value for a mouse move?

I use libinput in order to intercept host input events.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] How to pass intercepted mouse move x and y from host to a virtual machine running in Qemu
  2017-05-20  7:44 [Qemu-devel] How to pass intercepted mouse move x and y from host to a virtual machine running in Qemu Alexander Syvak
@ 2017-05-22  9:25 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-05-22  9:25 UTC (permalink / raw)
  To: Alexander Syvak; +Cc: qemu-devel, kraxel

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]

On Sat, May 20, 2017 at 10:44:23AM +0300, Alexander Syvak wrote:
> Hi, guys!
> 
> There exists a manually written virtual USB device registered as Qemu type.
> 
> It reads 5 bytes
> 
> - x and y of a mouse move, x and y of scrolling, and buttons state -
> 
> from mouse.fifo but there is no code in the implementation file which would
> actually parse those bytes.
> 
> First where does Qemu actually parse those bytes?
> 
> And the most important - can I actually pass double value for a mouse move?
> 
> I use libinput in order to intercept host input events.

It's not clear whether you are referring to a device in qemu.git or
custom code.  If you want help with custom code, please post a link to
the source.  If you want help with qemu.git code, please mention
specific the filename and/or function name you are asking about.

CCing Gerd Hoffman, USB maintainer.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-22  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-20  7:44 [Qemu-devel] How to pass intercepted mouse move x and y from host to a virtual machine running in Qemu Alexander Syvak
2017-05-22  9:25 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).