Skip to contentSkip to conversation

synaptic touchpad 4.x

Qemu-devel Jim C. Brown 3 participants 5 messages May 7, 2004

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#1 lore raw

Hi,

Quoted 1 line · Jim C. Brown

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...

Quoted 2 lines

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

#3 lore raw
In reply to Jim C. Brown

Hello,

Quoted 2 lines · Jim C. Brown

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.

Signature · 1 line
Gabriel Ebner - reverse "ta.renbeleirbag@eg"
#2 lore raw
In reply to Johannes Schindelin
Quoted 7 lines · Johannes Schindelin

Hi,

Quoted 1 line · Jim C. Brown

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, ...

Quoted 9 lines
Quoted 3 lines

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.

Quoted 3 lines

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.

Quoted 9 lines

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#4 lore raw
In reply to Gabriel Ebner
Quoted 12 lines · Gabriel Ebner

Hello,

Quoted 2 lines · Jim C. Brown

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.

Quoted 9 lines
Signature · 8 lines
Gabriel Ebner - reverse "ta.renbeleirbag@eg"



_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel
Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.