Re: [PATCH 2/2] Support for Stantum multitouch panel

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

 



Hi Stephane,

On Wed, Dec 09, 2009 at 10:49:28PM +0100, Stephane Chatty wrote:
> +
> +	if (emulate_touchscreen) {
> +		if (sd->first) {
> +			if (!sd->activity) {
> +				input_event(input, EV_KEY, BTN_TOUCH, 1);
> +				sd->activity = 1;
> +			}
> +			input_event(input, EV_ABS, ABS_X, sd->x);
> +			input_event(input, EV_ABS, ABS_Y, sd->y);
> +		}
> +	}

Why are you doing the above conditionally? Just report it always - less
setup required for the user.

-- 
Dmitry
--
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