[PATCH] evdev: allow mouse wheel emulation to work even with absolute-position devices (like touchscreens)

Dima Kogan dkogan at cds.caltech.edu
Sun Dec 6 23:42:25 PST 2009


OK, here's the new patch. Much smaller now. There's some spaces-vs-tabs
inconsistency in emuWheel.c, and it took me a few tries to make sure
that this patch wasn't touching those. Might make sense to do another
patch to clean up the whitespace.

Dima

On Mon, 7 Dec 2009 12:36:54 +1000
Peter Hutterer <peter.hutterer at who-t.net> wrote:

> On Sun, Dec 06, 2009 at 06:23:28PM -0800, Dima Kogan wrote:
> > Hi Peter.
> > 
> > I specifically didn't do it that way because I didn't want to assume
> > that REL_X == ABS_X and REL_Y == ABS_Y. I don't know how set in
> > stone those definitions are. I'd like you to confirm that this
> > assumption will hold for the foreseeable future, and if so, I will
> > redo the patch. Let me know. Thanks.
> 
> pretty much set in stone. if the kernel changes the definitions for
> those, a lot of things will break.
> of course, you could do #if trickery for the case but let's not worry
> about it.
> 
> Cheers,
>   Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-allow-wheel-emulation-to-work-with-absolute-position.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20091206/3fba9d1a/attachment.bin 


More information about the xorg-devel mailing list