| /kernel/linux/linux-4.19/Documentation/input/ |
| D | gamepad.rst | 44 4 buttons in diamonds-shape (on the right side). The buttons are 48 4 buttons (on the left side) that point up, down, left and right. 50 Different constellations, but most-times 2 buttons: SELECT - START 52 special system-button. It often looks different to the other buttons and 60 Not all devices provide them, but the upper buttons are normally named 61 Left- and Right-Triggers, the lower buttons Z-Left and Z-Right. 83 the buttons from this protocol. However, they try to do this in a compatible 84 fashion. For example, the "Nintendo Wii Nunchuk" provides two trigger buttons 86 analog stick and two trigger buttons on the right side. 101 Every gamepad device has at least 2 action buttons. This means, that every [all …]
|
| /kernel/linux/linux-5.10/Documentation/input/ |
| D | gamepad.rst | 44 4 buttons in diamonds-shape (on the right side). The buttons are 48 4 buttons (on the left side) that point up, down, left and right. 50 Different constellations, but most-times 2 buttons: SELECT - START 52 special system-button. It often looks different to the other buttons and 60 Not all devices provide them, but the upper buttons are normally named 61 Left- and Right-Triggers, the lower buttons Z-Left and Z-Right. 83 the buttons from this protocol. However, they try to do this in a compatible 84 fashion. For example, the "Nintendo Wii Nunchuk" provides two trigger buttons 86 analog stick and two trigger buttons on the right side. 101 Every gamepad device has at least 2 action buttons. This means, that every [all …]
|
| /kernel/linux/linux-5.10/drivers/input/joystick/ |
| D | maplecontrol.c | 29 unsigned short buttons; in dc_pad_callback() local 35 buttons = ~le16_to_cpup((__le16 *)(res + 8)); in dc_pad_callback() 38 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0)); in dc_pad_callback() 40 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); in dc_pad_callback() 42 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); in dc_pad_callback() 44 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); in dc_pad_callback() 46 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback() 47 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback() 48 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback() 49 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback() [all …]
|
| D | analog.c | 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() [all …]
|
| D | twidjoy.c | 14 * The Twiddler is a one-handed chording keyboard featuring twelve buttons on 15 * the front, six buttons on the top, and a built-in tilt sensor. The buttons 16 * on the front, which are grouped as four rows of three buttons, are pressed 18 * at the same time) and the buttons on the top are for the thumb. The tilt 26 * controller with amazing 18 buttons :-) 58 int buttons[3]; member 104 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet() 199 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
|
| /kernel/linux/linux-4.19/drivers/input/joystick/ |
| D | maplecontrol.c | 28 unsigned short buttons; in dc_pad_callback() local 34 buttons = ~le16_to_cpup((__le16 *)(res + 8)); in dc_pad_callback() 37 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0)); in dc_pad_callback() 39 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); in dc_pad_callback() 41 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); in dc_pad_callback() 43 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); in dc_pad_callback() 45 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback() 46 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback() 47 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback() 48 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback() [all …]
|
| D | analog.c | 112 short *buttons; member 129 int buttons; member 198 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument 206 buttons |= 1 << (i + 14); in analog_decode() 212 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode() 216 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode() 234 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1)); in analog_decode() 236 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1)); in analog_decode() 305 port->buttons = (~u >> 4) & 0xf; in analog_button_read() 309 port->buttons = 0; in analog_button_read() [all …]
|
| D | twidjoy.c | 13 * The Twiddler is a one-handed chording keyboard featuring twelve buttons on 14 * the front, six buttons on the top, and a built-in tilt sensor. The buttons 15 * on the front, which are grouped as four rows of three buttons, are pressed 17 * at the same time) and the buttons on the top are for the thumb. The tilt 25 * controller with amazing 18 buttons :-) 70 int buttons[3]; member 116 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet() 211 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
|
| /kernel/linux/linux-4.19/drivers/mfd/ |
| D | ucb1x00-assabet.c | 45 static struct gpio_keys_button buttons[6]; in ucb1x00_assabet_add() local 48 memset(buttons, 0, sizeof(buttons)); in ucb1x00_assabet_add() 51 for (i = 0; i < ARRAY_SIZE(buttons); i++) { in ucb1x00_assabet_add() 52 buttons[i].code = BTN_0 + i; in ucb1x00_assabet_add() 53 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add() 54 buttons[i].type = EV_KEY; in ucb1x00_assabet_add() 55 buttons[i].can_disable = true; in ucb1x00_assabet_add() 58 keys.buttons = buttons; in ucb1x00_assabet_add() 59 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | ucb1x00-assabet.c | 42 static struct gpio_keys_button buttons[6]; in ucb1x00_assabet_add() local 45 memset(buttons, 0, sizeof(buttons)); in ucb1x00_assabet_add() 48 for (i = 0; i < ARRAY_SIZE(buttons); i++) { in ucb1x00_assabet_add() 49 buttons[i].code = BTN_0 + i; in ucb1x00_assabet_add() 50 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add() 51 buttons[i].type = EV_KEY; in ucb1x00_assabet_add() 52 buttons[i].can_disable = true; in ucb1x00_assabet_add() 55 keys.buttons = buttons; in ucb1x00_assabet_add() 56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
|
| /kernel/linux/linux-4.19/Documentation/input/devices/ |
| D | xpad.rst | 10 Due to backwards compatibility all buttons are reported as digital. 12 have only digital face buttons. 23 The number of buttons/axes reported varies based on 3 things: 28 module configuration for "Map D-PAD to buttons rather than axes for unknown 33 If you said Y it will map the d-pad to buttons, which is needed for dance 47 axes and 10 buttons. 54 All of the 10 buttons work (in digital mode). The six buttons on the 66 When using a known dance pad, jstest will report 6 axes and 14 buttons. 73 Known dance pads automatically map the d-pad to buttons and will work 77 of buttons, see section 0.3 - Unknown Controllers [all …]
|
| /kernel/linux/linux-5.10/Documentation/input/devices/ |
| D | xpad.rst | 10 Due to backwards compatibility all buttons are reported as digital. 12 have only digital face buttons. 23 The number of buttons/axes reported varies based on 3 things: 28 module configuration for "Map D-PAD to buttons rather than axes for unknown 33 If you said Y it will map the d-pad to buttons, which is needed for dance 47 axes and 10 buttons. 54 All of the 10 buttons work (in digital mode). The six buttons on the 66 When using a known dance pad, jstest will report 6 axes and 14 buttons. 73 Known dance pads automatically map the d-pad to buttons and will work 77 of buttons, see section 0.3 - Unknown Controllers [all …]
|
| /kernel/linux/linux-5.10/drivers/input/mouse/ |
| D | logibm.c | 64 unsigned char buttons; in logibm_interrupt() local 73 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt() 74 dy |= (buttons & 0xf) << 4; in logibm_interrupt() 75 buttons = ~buttons >> 5; in logibm_interrupt() 79 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt() 80 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt() 81 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
|
| D | atarimouse.c | 65 int buttons, dx, dy; in atamouse_interrupt() local 67 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1); in atamouse_interrupt() 69 buttons |= atari_mouse_buttons & 2; in atamouse_interrupt() 70 atari_mouse_buttons = buttons; in atamouse_interrupt() 80 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt() 81 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt() 82 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
|
| /kernel/linux/linux-4.19/drivers/input/mouse/ |
| D | logibm.c | 76 unsigned char buttons; in logibm_interrupt() local 85 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt() 86 dy |= (buttons & 0xf) << 4; in logibm_interrupt() 87 buttons = ~buttons >> 5; in logibm_interrupt() 91 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt() 92 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt() 93 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
|
| D | atarimouse.c | 70 int buttons, dx, dy; in atamouse_interrupt() local 72 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1); in atamouse_interrupt() 74 buttons |= atari_mouse_buttons & 2; in atamouse_interrupt() 75 atari_mouse_buttons = buttons; in atamouse_interrupt() 85 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt() 86 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt() 87 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
|
| /kernel/linux/linux-4.19/arch/mips/ath79/ |
| D | dev-gpio-buttons.c | 16 #include "dev-gpio-buttons.h" 21 struct gpio_keys_button *buttons) in ath79_register_gpio_keys_polled() argument 28 p = kmemdup(buttons, nbuttons * sizeof(*p), GFP_KERNEL); in ath79_register_gpio_keys_polled() 39 pdata.buttons = p; in ath79_register_gpio_keys_polled()
|
| /kernel/linux/linux-4.19/drivers/input/keyboard/ |
| D | cros_ec_keyb.c | 41 * @bs_idev: The input device for non-matrix buttons and switches (or NULL). 81 /* Buttons */ 196 * cros_ec_keyb_report_bs - Report non-matrixed buttons or switches 198 * This takes a bitmap of buttons or switches from the EC and reports events, 203 * @mask: A bitmap of buttons from the EC. 269 &ckdev->ec->event_data.data.buttons); in cros_ec_keyb_work() 381 * kernel. Note that we don't query for buttons because they are more 426 * cros_ec_keyb_register_bs - Register non-matrix buttons/switches 428 * Handles all the bits of the keyboard driver related to non-matrix buttons 432 * If this device has no support for buttons and switches we'll return no error [all …]
|
| /kernel/linux/linux-5.10/drivers/input/keyboard/ |
| D | cros_ec_keyb.c | 41 * @bs_idev: The input device for non-matrix buttons and switches (or NULL). 81 /* Buttons */ 197 * cros_ec_keyb_report_bs - Report non-matrixed buttons or switches 199 * This takes a bitmap of buttons or switches from the EC and reports events, 204 * @mask: A bitmap of buttons from the EC. 270 &ckdev->ec->event_data.data.buttons); in cros_ec_keyb_work() 378 * kernel. Note that we don't query for buttons because they are more 423 * cros_ec_keyb_register_bs - Register non-matrix buttons/switches 425 * Handles all the bits of the keyboard driver related to non-matrix buttons 429 * If this device has no support for buttons and switches we'll return no error [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/ibmasm/ |
| D | remote.c | 125 unsigned char buttons = input->mouse_buttons; in print_input() local 128 (buttons) ? " -- buttons:" : "", in print_input() 129 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "", in print_input() 130 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "", in print_input() 131 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : "" in print_input() 146 unsigned char buttons = input->mouse_buttons; in send_mouse_event() local 150 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT); in send_mouse_event() 151 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE); in send_mouse_event() 152 input_report_key(dev, BTN_RIGHT, buttons & REMOTE_BUTTON_RIGHT); in send_mouse_event()
|
| /kernel/linux/linux-4.19/drivers/misc/ibmasm/ |
| D | remote.c | 139 unsigned char buttons = input->mouse_buttons; in print_input() local 142 (buttons) ? " -- buttons:" : "", in print_input() 143 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "", in print_input() 144 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "", in print_input() 145 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : "" in print_input() 160 unsigned char buttons = input->mouse_buttons; in send_mouse_event() local 164 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT); in send_mouse_event() 165 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE); in send_mouse_event() 166 input_report_key(dev, BTN_RIGHT, buttons & REMOTE_BUTTON_RIGHT); in send_mouse_event()
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | gpio_keys.h | 41 * @buttons: pointer to array of &gpio_keys_button structures 42 * describing buttons attached to the device 43 * @nbuttons: number of elements in @buttons array 51 const struct gpio_keys_button *buttons; member
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | gpio_keys.h | 41 * @buttons: pointer to array of &gpio_keys_button structures 42 * describing buttons attached to the device 43 * @nbuttons: number of elements in @buttons array 51 const struct gpio_keys_button *buttons; member
|
| /kernel/linux/linux-4.19/drivers/input/ |
| D | mousedev.c | 58 unsigned long buttons; member 93 unsigned long buttons; member 256 set_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 257 set_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 259 clear_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 260 clear_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 279 if (client->ready && p->buttons != mousedev->packet.buttons) { in mousedev_notify_readers() 303 p->buttons = mousedev->packet.buttons; in mousedev_notify_readers() 306 p->buttons != client->last_buttons) in mousedev_notify_readers() 333 set_bit(0, &mousedev->packet.buttons); in mousedev_touchpad_touch() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/ |
| D | mousedev.c | 55 unsigned long buttons; member 90 unsigned long buttons; member 253 set_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 254 set_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 256 clear_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 257 clear_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 276 if (client->ready && p->buttons != mousedev->packet.buttons) { in mousedev_notify_readers() 300 p->buttons = mousedev->packet.buttons; in mousedev_notify_readers() 303 p->buttons != client->last_buttons) in mousedev_notify_readers() 330 set_bit(0, &mousedev->packet.buttons); in mousedev_touchpad_touch() [all …]
|