Re: Re: [PATCH 1/1] Input: hanwang - add support for Art Master II tablet

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

 



Hi Dmitry Torokhov,

On 2012-07-10 14:43:51,you wrote:
>
>Hi,
>
>On Fri, Jun 29, 2012 at 10:14:06PM +0800, weixing wrote:
>>  
>>  	switch (data[0]) {
>>  	case 0x02:	/* data packet */
>>  		switch (data[1]) {
>>  		case 0x80:	/* tool prox out */
>> -			hanwang->current_id = 0;
>> -			input_report_key(input_dev, hanwang->current_tool, 0);
>> +			if (type != HANWANG_ART_MASTER_II) {
>> +				hanwang->current_id = 0;
>> +				input_report_key(input_dev,
>> +					hanwang->current_tool, 0);
>> +			}
>> +			break;
>> +		case 0x00:	/* artmaster ii pen leave */
>> +			if (type == HANWANG_ART_MASTER_II) {
>> +				hanwang->current_id = 0;
>> +				input_report_key(input_dev,
>> +					hanwang->current_tool, 0);
>> +			}
>>  			break;
>
>OK, so this will ignore 0x02 0x80 reports on HANWANG_ART_MASTER_II and
>0x02 0x00 reports on other tablets. I just want to make sure that was
>the intention of the patch.
>

yes.

>Thanks.
>
>-- 
>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
>



Thanks.

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