Re: [PATCH 3/4] input: mt: Move tracking and pointer emulation to input-mt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -132,12 +128,10 @@ static void parse_touch(struct w8001 *w8001)

>  			input_report_abs(dev, ABS_MT_POSITION_X, x);
>  			input_report_abs(dev, ABS_MT_POSITION_Y, y);
>  			input_report_abs(dev, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER);
> -			if (w8001->trkid[i] < 0)
> -				w8001->trkid[i] = trkid++ & MAX_TRACKING_ID;
> +			input_report_slot_state(dev, true);


			input_mt_report_slot_state(dev, true);

>  		} else {
> -			w8001->trkid[i] = -1;
> +			input_report_slot_state(dev, false);


			input_mt_report_slot_state(dev, false);

>  		}
> -		input_report_abs(dev, ABS_MT_TRACKING_ID, w8001->trkid[i]);
>  	}
>  
>  	input_sync(dev);


Henrik

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux