* [Qemu-devel] synaptic touchpad 4.x
@ 2004-05-07 14:26 Jim C. Brown
2004-05-07 15:09 ` Johannes Schindelin
2004-05-07 16:10 ` [Qemu-devel] " Gabriel Ebner
0 siblings, 2 replies; 5+ messages in thread
From: Jim C. Brown @ 2004-05-07 14:26 UTC (permalink / raw)
To: qemu-devel
I'm writing the code in it. Is there any specific model to base the emulation on?
Right now I'm just writing a very basic touchpad, no enhanced capabilities
supported. Touchpad version is 4.0 (the major version needs to be >= 4 in order
to have the drivers work correctly, based on the specs that I have). It's easier
than I thought. Of course, it appears that the standard touchpad doesn't
support the Z axis (i.e. no 3rd mouse button/scroll wheel). There is a Z value
in the packet, but its for finger pressure... could this be used to emulate
a scroll wheel? What is finger pressure normally used for?
I also need to know what s->mouse_type should be set to for a Synaptic Touchpad,
4.x model. Right now I've left it to the default.
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] synaptic touchpad 4.x
2004-05-07 14:26 [Qemu-devel] synaptic touchpad 4.x Jim C. Brown
@ 2004-05-07 15:09 ` Johannes Schindelin
2004-05-07 18:33 ` Jim C. Brown
2004-05-07 16:10 ` [Qemu-devel] " Gabriel Ebner
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2004-05-07 15:09 UTC (permalink / raw)
To: qemu-devel
Hi,
On Fri, 7 May 2004, Jim C. Brown wrote:
> I'm writing the code in it. Is there any specific model to base the emulation on?
Cool! I looked into qemu/pckbd.c and linux/drivers/input/mouse/synaptics.c
and decided that I would have to read up a lot in order to start it...
> Of course, it appears that the standard touchpad doesn't
> support the Z axis (i.e. no 3rd mouse button/scroll wheel).
My touchpad doesn't have it either. But there are those gestures: If you
put your index finger down and slide with your ring finger, it emulates
the wheel. I don't know how this is done internally (if synaptics already
knows how to translate that, or if the driver does it), but this could be
the way to go.
Do you have a patch for me to try out?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: synaptic touchpad 4.x
2004-05-07 14:26 [Qemu-devel] synaptic touchpad 4.x Jim C. Brown
2004-05-07 15:09 ` Johannes Schindelin
@ 2004-05-07 16:10 ` Gabriel Ebner
2004-05-07 18:35 ` Jim C. Brown
1 sibling, 1 reply; 5+ messages in thread
From: Gabriel Ebner @ 2004-05-07 16:10 UTC (permalink / raw)
To: qemu-devel
Hello,
Jim C. Brown wrote:
> mouse button/scroll wheel). There is a Z value in the packet, but its for
> finger pressure... could this be used to emulate a scroll wheel?
I don't think so. Scrolling is usually done by tap-and-move on the right
and bottom edge to get vertical resp. horizontal scrolling. I've seen no
Synaptics driver which implements scrolling by different pressures.
Gabriel.
--
Gabriel Ebner - reverse "ta.renbeleirbag@eg"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] synaptic touchpad 4.x
2004-05-07 15:09 ` Johannes Schindelin
@ 2004-05-07 18:33 ` Jim C. Brown
0 siblings, 0 replies; 5+ messages in thread
From: Jim C. Brown @ 2004-05-07 18:33 UTC (permalink / raw)
To: qemu-devel
On Fri, May 07, 2004 at 05:09:14PM +0200, Johannes Schindelin wrote:
> Hi,
>
> On Fri, 7 May 2004, Jim C. Brown wrote:
> > I'm writing the code in it. Is there any specific model to base the emulation on?
>
> Cool! I looked into qemu/pckbd.c and linux/drivers/input/mouse/synaptics.c
> and decided that I would have to read up a lot in order to start it...
I looked for the protocol on google and found a link to the protocol
specs on the XFree86 Synaptic driver's web page. I just code, read, code,
read, code, ...
>
> > Of course, it appears that the standard touchpad doesn't
> > support the Z axis (i.e. no 3rd mouse button/scroll wheel).
>
> My touchpad doesn't have it either. But there are those gestures: If you
> put your index finger down and slide with your ring finger, it emulates
> the wheel. I don't know how this is done internally (if synaptics already
> knows how to translate that, or if the driver does it), but this could be
> the way to go.
I haven't read through the 91-page pdf file yet, but it appears that the driver
does it. Guestures are reported by the touchpad directly to the driver. I didn't
look into this too clearly though and could be mistaken. I wasn't planning on
supporting guestures. At least not so early.
>
> Do you have a patch for me to try out?
>
Not yet. I haven't even tried to compile it. If you want the changes I have so
far, I can send you the file, but I'm not done writing the code yet.
> Ciao,
> Dscho
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Re: synaptic touchpad 4.x
2004-05-07 16:10 ` [Qemu-devel] " Gabriel Ebner
@ 2004-05-07 18:35 ` Jim C. Brown
0 siblings, 0 replies; 5+ messages in thread
From: Jim C. Brown @ 2004-05-07 18:35 UTC (permalink / raw)
To: qemu-devel
On Fri, May 07, 2004 at 06:10:45PM +0200, Gabriel Ebner wrote:
> Hello,
>
> Jim C. Brown wrote:
> > mouse button/scroll wheel). There is a Z value in the packet, but its for
> > finger pressure... could this be used to emulate a scroll wheel?
>
> I don't think so. Scrolling is usually done by tap-and-move on the right
> and bottom edge to get vertical resp. horizontal scrolling. I've seen no
> Synaptics driver which implements scrolling by different pressures.
>
> Gabriel.
>
Thanks for the input. So I need to implement guestures to have scrolling.
Oh well, my version of SDL was compiled w/o scrolling support anyways.
> --
> Gabriel Ebner - reverse "ta.renbeleirbag@eg"
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-05-07 18:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-07 14:26 [Qemu-devel] synaptic touchpad 4.x Jim C. Brown
2004-05-07 15:09 ` Johannes Schindelin
2004-05-07 18:33 ` Jim C. Brown
2004-05-07 16:10 ` [Qemu-devel] " Gabriel Ebner
2004-05-07 18:35 ` Jim C. Brown
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).