Displaying 1 result from an estimated 1 matches for "input_device_id_match_absbit".
2011 Sep 20
0
[PATCH] linux-2.6.18/Input: mousedev - handle mice that use absolute coordinates
...+712,12 @@ static struct input_device_id mousedev_i
.keybit = { [LONG(BTN_TOOL_FINGER)] = BIT(BTN_TOOL_FINGER) },
.absbit = { BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE) | BIT(ABS_TOOL_WIDTH) },
}, /* A touchpad */
+ {
+ .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_ABSBIT,
+ .evbit = { BIT(EV_KEY) | BIT(EV_ABS) | BIT(EV_SYN) },
+ .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) },
+ .absbit = { BIT(ABS_X) | BIT(ABS_Y) },
+ }, /* Mouse-like device with absolute X and Y but ordinary clicks, like hp ILO2 High Performance mouse */
{ }, /* Terminating entry */
};
_...