Looking at our own patched kernel sources, it looks like we report BTN_TOUCH only for TabletPC. Which may actually be correct.
In that case, though, we also need to augment the blacklist in joydev, which is currently still just:
static const struct input_device_id joydev_blacklist[] = { { .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT, .evbit = { BIT_MASK(EV_KEY) }, .keybit = { [BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH) }, }, /* Avoid itouchpads, touchscreens and tablets */ { } /* Terminating entry */ };
Looking at our own patched kernel sources, it looks like we report BTN_TOUCH only for TabletPC. Which may actually be correct.
In that case, though, we also need to augment the blacklist in joydev, which is currently still just:
static const struct input_device_id joydev_blacklist[] = {
.flags = INPUT_DEVICE_ ID_MATCH_ EVBIT |
INPUT_ DEVICE_ ID_MATCH_ KEYBIT,
.evbit = { BIT_MASK(EV_KEY) },
.keybit = { [BIT_WORD( BTN_TOUCH) ] = BIT_MASK(BTN_TOUCH) },
{
}, /* Avoid itouchpads, touchscreens and tablets */
{ } /* Terminating entry */
};