Home
last modified time | relevance | path

Searched full:buttons (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/linux/drivers/input/joystick/
H A Dmaplecontrol.c29 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 …]
H A Danalog.c94 short *buttons; member
110 int buttons; member
119 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument
127 buttons |= 1 << (i + 14); in analog_decode()
133 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode()
137 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode()
155 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1)); in analog_decode()
157 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1)); in analog_decode()
226 port->buttons = (~u >> 4) & 0xf; in analog_button_read()
230 port->buttons = 0; in analog_button_read()
[all …]
H A Dtwidjoy.c14 * 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 :-)
55 int buttons[3]; member
101 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet()
196 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
H A Djoydump.c34 int axes[4], buttons; in joydump_connect() local
54 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect()
58 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons); in joydump_connect()
H A Dadi.c51 * Names, buttons, axes ...
95 char buttons; member
213 for (i = 0; i < adi->buttons && i < 63; i++) { in adi_decode()
228 for (i = 63; i < adi->buttons; i++) in adi_decode()
336 adi->buttons = adi_get_bits(adi, 6); in adi_id_decode()
344 adi->buttons += adi_get_bits(adi, 6); in adi_id_decode()
360 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4; in adi_id_decode()
370 adi->buttons -= 4; in adi_id_decode()
374 adi->buttons -= 4; in adi_id_decode()
419 for (i = 0; i < adi->buttons; i++) in adi_init_input()
/linux/drivers/mfd/
H A Ducb1x00-assabet.c42 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()
/linux/tools/testing/selftests/hid/tests/
H A Dbase_gamepad.py62 self.buttons = (1, 2, 3)
86 buttons=None, argument
100 :param buttons: a dict of index/bool for the button states,
105 if buttons is not None:
106 for i, b in buttons.items():
107 if i not in self.buttons:
150 self, *, left=(None, None), right=(None, None), hat_switch=None, buttons=None argument
161 :param buttons: a dict of index/bool for the button states,
165 left=left, right=right, hat_switch=hat_switch, buttons=buttons
208 buttons=None, argument
[all …]
H A Dtest_wacom_generic.py80 class Buttons: class
84 Describes the state of each of the buttons / "side switches" that
85 may be present on a stylus. Buttons set to 'None' indicate the
96 return Buttons(False, False, False)
169 self.buttons = Buttons.clear()
192 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None argument
200 :param buttons: stylus button state. Use ``None`` for unchanged.
207 if buttons is not None:
208 self.buttons = buttons
209 buttons = self.buttons
[all …]
H A Dtest_gamepad.py38 buttons = {}
41 buttons[button] = True
42 r = uhdev.event(buttons=buttons)
49 buttons[button] = False
50 r = uhdev.event(buttons=buttons)
61 for b in uhdev.buttons:
65 """check for button reliability when pressing 2 buttons"""
71 b1 = uhdev.buttons[0]
73 b2 = uhdev.buttons[1]
76 buttons = {b1: True, b2: True}
[all …]
/linux/Documentation/input/devices/
H A Dxpad.rst10 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 …]
H A Dalps.rst33 00-00-64 if no buttons are pressed. The bits 0-2 of the first byte will be 1s
34 if some buttons are pressed.
87 extra buttons, stick buttons on a dualpoint, etc.
102 pointingstick and touchpad buttons.
130 the pointingstick and touchpad buttons, except for Dell dualpoint devices
131 where the pointingstick buttons get reported separately in the PSM, PSR
170 Note that for some devices the trackstick buttons are reported in this packet,
200 processing is enabled. SW means scroll up when 4 buttons are available.
H A Datarikbd.rst63 The mouse buttons can be treated as part of the mouse or as additional
90 MOUSE BUTTON ACTION has set the buttons to act like part of the keyboard.
112 break code for the appropriate cursor key. The mouse buttons produce scan
173 for the appropriate cursor motion keys. The trigger or fire buttons of the
203 reporting mode for joystick 1, with both buttons being logically assigned to
207 both buttons are logically connected to it. If a mouse disable command is
252 ; mss=100, mouse buttons act like keys
254 This command sets how the ikbd should treat the buttons on the mouse. The
255 default mouse button action mode is %00000000, the buttons are treated as part
257 When buttons act like keys, LEFT=0x74 & RIGHT=0x75.
[all …]
/linux/drivers/input/mouse/
H A Datarimouse.c65 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()
H A Dmaplemouse.c29 int buttons, relx, rely, relz; in dc_mouse_callback() local
35 buttons = ~res[8]; in dc_mouse_callback()
40 input_report_key(dev, BTN_LEFT, buttons & 4); in dc_mouse_callback()
41 input_report_key(dev, BTN_MIDDLE, buttons & 9); in dc_mouse_callback()
42 input_report_key(dev, BTN_RIGHT, buttons & 2); in dc_mouse_callback()
/linux/drivers/input/
H A Dmousedev.c55 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 …]
/linux/drivers/media/rc/keymaps/
H A Drc-reddo.c20 * 2) Reddo remote has less buttons. Missing buttons are: colored buttons,
21 * navigation buttons and main power button.
/linux/Documentation/ABI/obsolete/
H A Dsysfs-driver-hid-roccat-kovaplus66 press of a button. A profile is split in settings and buttons.
69 buttons back to the mouse. The data has to be 23 bytes long.
81 press of a button. A profile is split in settings and buttons.
83 When read, these files return the respective profile buttons.
93 press of a button. A profile is split in settings and buttons.
109 press of a button. A profile is split in settings and buttons.
H A Dsysfs-driver-hid-roccat-pyra55 press of a button. A profile is split in settings and buttons.
58 buttons back to the mouse. The data has to be 19 bytes long.
70 press of a button. A profile is split in settings and buttons.
72 When read, these files return the respective profile buttons.
82 press of a button. A profile is split in settings and buttons.
98 press of a button. A profile is split in settings and buttons.
H A Dsysfs-driver-hid-roccat-koneplus59 press of a button. A profile is split in settings and buttons.
62 buttons back to the mouse. The data has to be 77 bytes long.
74 press of a button. A profile is split in settings and buttons.
76 When read, these files return the respective profile buttons.
86 press of a button. A profile is split in settings and buttons.
102 press of a button. A profile is split in settings and buttons.
/linux/Documentation/devicetree/bindings/input/
H A Dgoogle,cros-ec-keyb.yaml19 switches/buttons like power and volume buttons.
24 - description: ChromeOS EC with only buttons/switches
26 - description: ChromeOS EC with keyboard and possibly buttons/switches
136 /* No matrix keyboard, just buttons/switches */
/linux/drivers/input/rmi4/
H A DKconfig97 Function 21 provides buttons/pressure handling for RMI4 devices.
98 This includes support for buttons/pressure on PressurePad.
106 includes support for buttons on TouchPads and ClickPads.
124 support for buttons on TouchPads and ClickPads.
/linux/Documentation/input/
H A Dgameport-programming.rst75 int my_cooked_read(struct gameport *gameport, int *axes, int *buttons)
81 buttons[0] = my_mmio[4];
175 Read the buttons and ns558 oneshot bits. If set to NULL, inb(io) will be
180 int (*cooked_read)(struct gameport *, int *axes, int *buttons);
184 and buttons[0] with four bits representing the buttons.
H A Devent-codes.rst41 - Used to describe state changes of keyboards, buttons, or other key-like
389 device but do not have physical buttons associated with the trackstick
391 visual/haptic areas for left, middle, right buttons intended to be used
394 If INPUT_PROP_TOPBUTTONPAD is set, userspace should emulate buttons
446 further buttons of the device. REL_WHEEL and REL_HWHEEL should be used to report
478 BTN_{STYLUS,STYLUS2} should be used to report buttons on the tool itself. Any
479 button may be used for buttons on the tablet except BTN_{MOUSE,LEFT}.
480 BTN_{0,1,2,etc} are good generic codes for unlabeled buttons. Do not use
481 meaningful buttons, like BTN_FORWARD, unless the button is labeled for that
/linux/sound/soc/codecs/
H A Dcs42l43-jack.c115 ret = device_property_count_u32(cs42l43->dev, "cirrus,buttons-ohms"); in cs42l43_set_jack()
118 dev_err(priv->dev, "Property cirrus,buttons-ohms malformed: %d\n", in cs42l43_set_jack()
125 dev_err(priv->dev, "Property cirrus,buttons-ohms too many entries\n"); in cs42l43_set_jack()
129 ret = device_property_read_u32_array(cs42l43->dev, "cirrus,buttons-ohms", in cs42l43_set_jack()
130 priv->buttons, ret); in cs42l43_set_jack()
137 priv->buttons[0] = 70; in cs42l43_set_jack()
138 priv->buttons[1] = 185; in cs42l43_set_jack()
139 priv->buttons[2] = 355; in cs42l43_set_jack()
140 priv->buttons[3] = 735; in cs42l43_set_jack()
378 unsigned int buttons = 0; in cs42l43_button_press() local
[all …]
/linux/drivers/input/misc/
H A Dims-pcu.c110 struct ims_pcu_buttons buttons; member
119 * Buttons Input device support *
186 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_buttons_report() local
187 struct input_dev *input = buttons->input; in ims_pcu_buttons_report()
191 unsigned short keycode = buttons->keymap[i]; in ims_pcu_buttons_report()
204 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_setup_buttons() local
215 snprintf(buttons->name, sizeof(buttons->name), in ims_pcu_setup_buttons()
218 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); in ims_pcu_setup_buttons()
219 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); in ims_pcu_setup_buttons()
221 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); in ims_pcu_setup_buttons()
[all …]

12345678910>>...12