/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/ |
H A D | test_gamepad.py | 36 buttons = {} 39 buttons[button] = True 40 r = uhdev.event(buttons=buttons) 47 buttons[button] = False 48 r = uhdev.event(buttons=buttons) 59 for b in uhdev.buttons: 63 """check for button reliability when pressing 2 buttons""" 69 b1 = uhdev.buttons[ [all...] |
H A D | test_wacom_generic.py | 83 Describes the state of each of the buttons / "side switches" that 168 self.buttons = Buttons.clear() 191 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None 199 :param buttons: stylus button state. Use ``None`` for unchanged. 206 if buttons is not None: 207 self.buttons = buttons 208 buttons = self.buttons 225 buttons [all...] |
/kernel/linux/linux-5.10/drivers/input/joystick/ |
H A 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 in dc_pad_callback() [all...] |
H A 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 >> (( in analog_decode() [all...] |
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A 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 in dc_pad_callback() [all...] |
H A D | analog.c | 94 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 >> (( in analog_decode() [all...] |
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-buttons.c | 84 return t->point.y >= tp->buttons.bottom_area.top_edge; in is_inside_bottom_button_area() 92 t->point.x > tp->buttons.bottom_area.rightbutton_left_edge; in is_inside_bottom_right_area() 101 t->point.x > tp->buttons.bottom_area.middlebutton_left_edge; in is_inside_bottom_middle_area() 108 return t->point.y <= tp->buttons.top_area.bottom_edge; in is_inside_top_button_area() 116 t->point.x > tp->buttons.top_area.rightbutton_left_edge; in is_inside_top_right_area() 124 t->point.x >= tp->buttons.top_area.leftbutton_right_edge && in is_inside_top_middle_area() 125 t->point.x <= tp->buttons.top_area.rightbutton_left_edge; in is_inside_top_middle_area() 597 /* Ignore other buttons on clickpads */ in tp_process_button() 598 if (tp->buttons.is_clickpad && e->code != BTN_LEFT) { in tp_process_button() 606 tp->buttons in tp_process_button() [all...] |
H A D | evdev-tablet-pad.c | 42 struct button_state *buttons) in pad_get_buttons_pressed() 48 for (i = 0; i < sizeof(buttons->bits); i++) in pad_get_buttons_pressed() 49 buttons->bits[i] = state->bits[i] & ~(prev_state->bits[i]); in pad_get_buttons_pressed() 54 struct button_state *buttons) in pad_get_buttons_released() 60 for (i = 0; i < sizeof(buttons->bits); i++) in pad_get_buttons_released() 61 buttons->bits[i] = prev_state->bits[i] & ~(state->bits[i]); in pad_get_buttons_released() 363 const struct button_state *buttons, in pad_notify_button_mask() 371 for (i = 0; i < sizeof(buttons->bits); i++) { in pad_notify_button_mask() 372 unsigned char buttons_slice = buttons->bits[i]; in pad_notify_button_mask() 420 struct button_state buttons; in pad_notify_buttons() local 41 pad_get_buttons_pressed(struct pad_dispatch *pad, struct button_state *buttons) pad_get_buttons_pressed() argument 53 pad_get_buttons_released(struct pad_dispatch *pad, struct button_state *buttons) pad_get_buttons_released() argument 360 pad_notify_button_mask(struct pad_dispatch *pad, struct evdev_device *device, uint64_t time, const struct button_state *buttons, enum libinput_button_state state) pad_notify_button_mask() argument [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A 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() [all...] |
/kernel/linux/linux-5.10/drivers/input/mouse/ |
H A 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()
|
H A 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()
|
H A D | maplemouse.c | 29 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()
|
H A D | inport.c | 72 unsigned char buttons; in inport_interrupt() local 84 buttons = inb(INPORT_DATA_PORT); in inport_interrupt() 86 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); in inport_interrupt() 87 input_report_key(inport_dev, BTN_LEFT, buttons & 2); in inport_interrupt() 88 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); in inport_interrupt()
|
/kernel/linux/linux-6.6/drivers/input/mouse/ |
H A 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()
|
H A D | logibm.c | 61 unsigned char buttons; in logibm_interrupt() local 70 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt() 71 dy |= (buttons & 0xf) << 4; in logibm_interrupt() 72 buttons = ~buttons >> 5; in logibm_interrupt() 76 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt() 77 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt() 78 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
|
H A D | maplemouse.c | 29 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()
|
H A D | inport.c | 69 unsigned char buttons; in inport_interrupt() local 81 buttons = inb(INPORT_DATA_PORT); in inport_interrupt() 83 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); in inport_interrupt() 84 input_report_key(inport_dev, BTN_LEFT, buttons & 2); in inport_interrupt() 85 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); in inport_interrupt()
|
/third_party/glfw/src/ |
H A D | input.c | 109 if (!isValidElementForJoystick(mapping->buttons + i, js)) in findValidMapping() 136 { "a", mapping->buttons + GLFW_GAMEPAD_BUTTON_A }, in parseMapping() 137 { "b", mapping->buttons + GLFW_GAMEPAD_BUTTON_B }, in parseMapping() 138 { "x", mapping->buttons + GLFW_GAMEPAD_BUTTON_X }, in parseMapping() 139 { "y", mapping->buttons + GLFW_GAMEPAD_BUTTON_Y }, in parseMapping() 140 { "back", mapping->buttons + GLFW_GAMEPAD_BUTTON_BACK }, in parseMapping() 141 { "start", mapping->buttons + GLFW_GAMEPAD_BUTTON_START }, in parseMapping() 142 { "guide", mapping->buttons + GLFW_GAMEPAD_BUTTON_GUIDE }, in parseMapping() 143 { "leftshoulder", mapping->buttons + GLFW_GAMEPAD_BUTTON_LEFT_BUMPER }, in parseMapping() 144 { "rightshoulder", mapping->buttons in parseMapping() [all...] |
/third_party/backends/backend/ |
H A D | plustek-pp_procfs.c | 201 len += sprintf( buf+len, "Buttons : %u\n", ps->Device.buttons); in procfsInfoReadProc() 226 bc = ps->Device.buttons; in procfsButtonsReadProc() 229 /* Check the buttons... */ in procfsButtonsReadProc() 333 for( i = 0; i < ps->Device.buttons; i++ ) { in destroy_proc_tree() 335 if( ps->procDir.buttons[i] ) in destroy_proc_tree() 336 destroy_proc_entry(ps->procDir.entry, &ps->procDir.buttons[i]); in destroy_proc_tree() 420 for( i = 0; i < ps->Device.buttons; i++ ) { in ProcFsRegisterDevice() 424 ps->procDir.buttons[i] = new_entry( str, 0, ps->procDir.entry ); in ProcFsRegisterDevice() 425 if( NULL == ps->procDir.buttons[i] ) in ProcFsRegisterDevice() 428 ps->procDir.buttons[ in ProcFsRegisterDevice() [all...] |
/kernel/linux/linux-5.10/drivers/input/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/input/ |
H A 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() [all...] |
/third_party/lzma/CPP/Windows/Control/ |
H A D | ToolBar.h | 20 // maybe it must be fixed for more than 1 buttons
in GetMaxSize() 35 bool AddButton(UINT numButtons, LPTBBUTTON buttons) { return LRESULTToBool(SendMsg(TB_ADDBUTTONS, numButtons, (LPARAM)buttons)); }
in AddButton() argument 37 bool AddButtonW(UINT numButtons, LPTBBUTTON buttons) { return LRESULTToBool(SendMsg(TB_ADDBUTTONSW, numButtons, (LPARAM)buttons)); }
in AddButtonW() argument
|
/kernel/linux/linux-6.6/drivers/platform/x86/x86-android-tablets/ |
H A D | core.c | 127 static struct gpio_keys_button *buttons; variable 242 kfree(buttons); in x86_android_tablet_cleanup() 362 buttons = kcalloc(dev_info->gpio_button_count, sizeof(*buttons), GFP_KERNEL); in x86_android_tablet_init() 363 if (!buttons) { in x86_android_tablet_init() 376 buttons[i] = dev_info->gpio_button[i].button; in x86_android_tablet_init() 377 buttons[i].gpio = desc_to_gpio(gpiod); in x86_android_tablet_init() 380 pdata.buttons = buttons; in x86_android_tablet_init()
|
/third_party/glfw/tests/ |
H A D | joysticks.c | 229 nk_checkbox_label(nk, "Hat buttons", &hat_buttons); in main() 258 const unsigned char* buttons; in main() local 268 buttons = glfwGetJoystickButtons(joysticks[i], &button_count); in main() 283 nk_select_label(nk, name, NK_TEXT_CENTERED, buttons[j]); in main() 316 nk_select_label(nk, names[j], NK_TEXT_CENTERED, state.buttons[j]); in main() 318 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_UP]) in main() 320 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_RIGHT]) in main() 322 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_DOWN]) in main() 324 if (state.buttons[GLFW_GAMEPAD_BUTTON_DPAD_LEFT]) in main()
|