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

Benjamin Tissoires tissoire at cena.fr
Wed Jun 2 08:51:40 PDT 2010



Le 02/06/2010 15:13, Henrik Rydberg a écrit :
> 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?
>

Good point, thanks Henrik


More information about the xorg-devel mailing list