> Hi, > > then actually mice are absolute not relative. They have two axis that > measure absolute ball rotation speed in two directions just like > joystick has two axis that measure absolute stick excentricity. > > Thanks > > Michal
This is not really constructive to the api but: Mice are not absolute because they are just measuring movement of a surface relative to itself, when you are not moving the mouse there is no axis value. You could take the ball out and turn it over and put it back in the absolute position of the ball has changed but the mouse axis has not. For some ball mice the rollers measure the movement of a wheel with small holes inside it, when it moves it breaks the connection the chip registers this and uses it to calculate the delta for that axis. Optical mice are just taking small images of the surface and using that information to calculate a distance moved, again relative motion. A joystick does not necessarily have 2 axis and in most cases yes they are reporting an absolute position of the axis in the driver but it does not necessarily mean that the the hardware is absolute. For example if a joystick is using the same slotted optical system as the ball mice then this would be measuring relative motion and using it to calculate the absolute axis value, under some circumstances the position could become out of sync until re-calibrated by moving to the joystick to the maximum and minimum values for all axes or having it automatically re-center. USB HID specifications define a pointer and a mouse as two completely different inputs. A mouse can be a used as a pointer because it is pushing the cursor around but the pointer points at a specific location. _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel