Lines Matching refs:button
39 struct f3a_data *f3a, unsigned int button)
41 u16 key_code = f3a->gpio_key_map[button];
42 bool key_down = !(f3a->data_regs[0] & BIT(button));
45 button >= TRACKSTICK_RANGE_START &&
46 button <= TRACKSTICK_RANGE_END) {
115 static bool rmi_f3a_is_valid_button(int button, struct f3a_data *f3a,
119 return (query1_regs[0] & BIT(button)) && !(ctrl1_regs[0] & BIT(button));
128 unsigned int button = BTN_LEFT;
152 f3a->gpio_key_map[i] = button;
153 input_set_capability(input, EV_KEY, button++);
161 if (pdata->gpio_data.buttonpad || (button - BTN_LEFT == 1))