• Home
  • Raw
  • Download

Lines Matching refs:buttons

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