Smooth scrolling and button emulation
Sascha Hlusiak
saschahlusiak at arcor.de
Wed Oct 3 10:17:08 PDT 2012
Hi Peter,
I'd like to implement smooth scrolling in the joystick input module. By
calling
SetScrollValuator(pDevice, 2, SCROLL_TYPE_VERTICAL, 100, 0);
I can set the scroll resolution of the valuator 2 to 100. As far as I
understand, I now can send valuator movement that XI2 applications already
can use for smooth scrolling.
In the case for legacy button scroll events, the server keeps track of the
accumulated scroll delta and after reaching 100, will generate a XI1/legacy
scroll button down/up sequence. Is there a way to reset that server internal
delta to 0 after scrolling stops? It seems that smooth scrolling might leave
that value at 99, which makes it impossible for me to predict when the next
legacy button scroll event will happen.
In the case of the joystick module, where deflecting the axis generates a
whole scroll unit, followed by smooth scrolling, this results in sometimes
two units from the start.
Did I miss something in the API?
Is there any bigger application out there that uses smooth scrolling right
now? AFAIK, no major browser does.
Regards,
Sascha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.x.org/archives/xorg-devel/attachments/20121003/2439d251/attachment.pgp>
More information about the xorg-devel
mailing list