Lines Matching refs:buttons
111 short *buttons;
128 int buttons;
182 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons)
190 buttons |= 1 << (i + 14);
196 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1);
200 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1);
218 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1));
220 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1));
288 port->buttons = (~u >> 4) & 0xf;
292 port->buttons = 0;
295 port->buttons |= 1 << analog_chf[(~u >> 4) & 0xf];
320 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons);
322 port->buttons = port->buttons ? (1 << analog_chf[port->buttons]) : 0;
338 analog_decode(port->analog + i, port->axes, port->initial, port->buttons);
441 analog->buttons = (analog->mask & ANALOG_GAMEPAD) ? analog_pad_btn : analog_joy_btn;
495 set_bit(analog->buttons[j++], input_dev->keybit);
499 set_bit(analog->buttons[j++], input_dev->keybit);
503 set_bit(analog->buttons[j++], input_dev->keybit);
509 analog_decode(analog, port->axes, port->initial, port->buttons);
634 if (!gameport_cooked_read(gameport, port->axes, &port->buttons))