Re: [PATCH 3/3] input: wacom: Add support for the Bamboo Touch trackpad (rev2)

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

 



On 09/02/2010 11:02 PM, Ping Cheng wrote:
[...]
>> @@ -1079,6 +1134,31 @@ void wacom_setup_input_capabilities(struct input_dev
*input_dev,

>>         case PENPARTNER:
>>                 __set_bit(BTN_TOOL_RUBBER, input_dev->keybit);
>>                 break;
>> +
>> +       case BAMBOO_PT:
>> +               __clear_bit(ABS_MISC, input_dev->absbit);
>> +
>> +               if (features->device_type != BTN_TOOL_TRIPLETAP)
>> +                       break;
>> +
>> +               __set_bit(BTN_LEFT, input_dev->keybit);
>> +               __set_bit(BTN_MIDDLE, input_dev->keybit);
>> +               __set_bit(BTN_RIGHT, input_dev->keybit);
> 
> An if-else is needed here instead of the break since there is a
> pen-only bamboo model in the market. If you don't have time to update
> it, you can leave it to Chris. He can make the changes when he work on
> the other models.


Thanks, I can see that will make subsequent patches nicer. There will most
likely be another round of patches, I will update it then, and leave the rest to
Chris.

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