Lines Matching refs:buttons
100 short *buttons;
117 int buttons;
186 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons)
194 buttons |= 1 << (i + 14);
200 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1);
204 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1);
222 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1));
224 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1));
293 port->buttons = (~u >> 4) & 0xf;
297 port->buttons = 0;
300 port->buttons |= 1 << analog_chf[(~u >> 4) & 0xf];
325 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons);
327 port->buttons = port->buttons ? (1 << analog_chf[port->buttons]) : 0;
343 analog_decode(port->analog + i, port->axes, port->initial, port->buttons);
454 analog->buttons = (analog->mask & ANALOG_GAMEPAD) ? analog_pad_btn : analog_joy_btn;
508 set_bit(analog->buttons[j++], input_dev->keybit);
512 set_bit(analog->buttons[j++], input_dev->keybit);
516 set_bit(analog->buttons[j++], input_dev->keybit);
522 analog_decode(analog, port->axes, port->initial, port->buttons);
647 if (!gameport_cooked_read(gameport, port->axes, &port->buttons))