Lines Matching refs:button
2 * Cobalt button interface driver.
53 struct buttons_map *button = buttons_map;
63 if (status & button->mask) {
64 button->count++;
66 if (button->count >= BUTTONS_COUNT_THRESHOLD) {
67 input_report_key(input, button->keycode, 0);
70 button->count = 0;
73 if (button->count == BUTTONS_COUNT_THRESHOLD) {
74 input_report_key(input, button->keycode, 1);
78 button++;