<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
</div></div>Ok, so what I'm trying to do is to enable what people call "smooth<br>
scrolling" on an input level, meaning that scrolling is not based on<br>
discrete arbitrary "steps" but on a more fluid motion. These types of<br>
events makes most sense for certain types of step-less scroll wheels<br>
and touchpads and I'll try to explain why.<br>
<br>
When axis events are discrete steps, there is indeed little need to<br>
relate to any kind of coordinate space except knowing what is "up" and<br>
what is "down". A step can only be 1 or -1, thats it. This is how it<br>
traditionally works in X11 (except XI2 I think supports non-discrete<br>
axis events).<br>
<br>
If one wants to have axis events that more resemble smooth motions,<br>
such as the ones emitted by those step-less scroll wheels or<br>
touchpads, one needs to specify what the events actually mean, since<br>
they are no longer only limited to 1 and -1. To do this, if we specify<br>
an axis event to be a vector along an axis in a coordinate space<br>
identical to motion events, we can create axis events that relate to<br>
some measurement already known to both the compositor and client. A<br>
step-less scroll wheel would transform its scroll events to a motion<br>
vector measured in pixels and a touchpad would simply emit an axis<br>
event as it would emit a motion event when scrolling. A client could<br>
then read these events and can scroll its view by that amount of<br>
pixels specified by the value parameter.<br>
<span class="HOEnZb"><font color="#888888"><br>
Jonas<br>
</font></span></blockquote></div><br><br>This makes it much clearer. I saw there was some discussion in IRC a few days ago too. Perhaps you could put the key points you've made here, in the protocol description. I guess the only thing is now, evdev needs fixing to emit the same expected format.<br>
<br><br>Scott<br>