[PATCH evdev 3/3] Dummy process of MT events (protocol A). (rev3)

Henrik Rydberg rydberg at euromail.se
Wed Jun 2 06:13:13 PDT 2010

B> @@ -545,7 +548,15 @@ EvdevProcessAbsoluteMotionEvent(InputInfoPtr pInfo,
struct input_event *ev)
>      if (EvdevWheelEmuFilterMotion(pInfo, ev))
>          return;
> -    pEvdev->vals[pEvdev->axis_map[ev->code]] = value;
> +    if (ev->code < ABS_MT_TOUCH_MAJOR)

Shouldn't this test change as well? How about an inline bool function to
determine what type of event we are dealing with, so that this does no have to
change if the ABS_MT map changes?


More information about the xorg-devel mailing list