Lines Matching refs:buttons
94 short *buttons;
110 int buttons;
119 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons)
127 buttons |= 1 << (i + 14);
133 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1);
137 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1);
155 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1));
157 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1));
226 port->buttons = (~u >> 4) & 0xf;
230 port->buttons = 0;
233 port->buttons |= 1 << analog_chf[(~u >> 4) & 0xf];
258 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons);
260 port->buttons = port->buttons ? (1 << analog_chf[port->buttons]) : 0;
276 analog_decode(port->analog + i, port->axes, port->initial, port->buttons);
372 analog->buttons = (analog->mask & ANALOG_GAMEPAD) ? analog_pad_btn : analog_joy_btn;
426 set_bit(analog->buttons[j++], input_dev->keybit);
430 set_bit(analog->buttons[j++], input_dev->keybit);
434 set_bit(analog->buttons[j++], input_dev->keybit);
440 analog_decode(analog, port->axes, port->initial, port->buttons);
565 if (!gameport_cooked_read(gameport, port->axes, &port->buttons))