/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...] |
H A D | evdev-tablet.c | 52 struct button_state *buttons) in tablet_get_pressed_buttons() 58 for (i = 0; i < sizeof(buttons->bits); i++) in tablet_get_pressed_buttons() 59 buttons->bits[i] = state->bits[i] & ~(prev_state->bits[i]); in tablet_get_pressed_buttons() 64 struct button_state *buttons) in tablet_get_released_buttons() 70 for (i = 0; i < sizeof(buttons->bits); i++) in tablet_get_released_buttons() 71 buttons->bits[i] = prev_state->bits[i] & in tablet_get_released_buttons() 75 /* Merge the previous state with the current one so all buttons look like 617 /* artpen has 0 with buttons pointing east */ in tablet_update_artpen_rotation() 931 set_bit(tool->buttons, button); in copy_button_cap() 1050 /* If we don't have libwacom, copy all pen-related buttons fro in tool_set_bits() 51 tablet_get_pressed_buttons(struct tablet_dispatch *tablet, struct button_state *buttons) tablet_get_pressed_buttons() argument 63 tablet_get_released_buttons(struct tablet_dispatch *tablet, struct button_state *buttons) tablet_get_released_buttons() argument 1199 tablet_notify_button_mask(struct tablet_dispatch *tablet, struct evdev_device *device, uint64_t time, struct libinput_tablet_tool *tool, const struct button_state *buttons, enum libinput_button_state state) tablet_notify_button_mask() argument 1237 struct button_state buttons; tablet_notify_buttons() local [all...] |
H A D | evdev-mt-touchpad.c | 726 if (!tp->buttons.trackpoint) in tp_process_trackpoint_button() 729 dispatch = tp->buttons.trackpoint->dispatch; in tp_process_trackpoint_button() 750 tp->buttons.trackpoint, in tp_process_trackpoint_button() 753 tp->buttons.trackpoint, in tp_process_trackpoint_button() 1812 tp->buttons.is_clickpad) in tp_process_state() 1841 tp->buttons.old_state = tp->buttons.state; in tp_post_process_state() 1977 if (tp->buttons.trackpoint && in tp_remove_sendevents() 2043 * Release buttons first. If tp is a clickpad, the button event in tp_clear_state() 2082 * device, to keep the "trackpoint" buttons workin in tp_suspend() [all...] |
/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...] |
H A D | cocoa_joystick.h | 40 CFMutableArrayRef buttons; member
|
/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...] |
H A D | plustek-pp_models.c | 246 ps->Device.buttons = 0; in ModelSet4800() 305 ps->Device.buttons = 1; in ModelSet4830() 361 ps->Device.buttons = 0; in ModelSet600() 398 ps->Device.buttons = 0; in ModelSet12000() 422 ps->Device.buttons = 1; in ModelSetA3I() 494 ps->Device.buttons = 1; in ModelSet9630() 561 ps->Device.buttons = 0; in ModelSet9636()
|
H A D | hp3900_debug.c | 66 static void dbg_buttons (struct st_buttons *buttons); 216 dbg_buttons (struct st_buttons *buttons) in dbg_buttons() argument 218 if (buttons != NULL) in dbg_buttons() 223 buttons->count, buttons->mask[0], buttons->mask[1], in dbg_buttons() 224 buttons->mask[2], buttons->mask[3], buttons->mask[4], in dbg_buttons() 225 buttons in dbg_buttons() [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
|
/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()
|
/third_party/backends/backend/genesys/ |
H A D | tables_model.cpp | 121 model.buttons = GENESYS_HAS_NO_BUTTONS; in genesys_init_usb_device_tables() 175 model.buttons = GENESYS_HAS_SCAN_SW | in genesys_init_usb_device_tables() 228 model.buttons = GENESYS_HAS_SCAN_SW; in genesys_init_usb_device_tables() 280 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW; in genesys_init_usb_device_tables() 330 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW | GENESYS_HAS_TRANSP_SW; in genesys_init_usb_device_tables() 382 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW; in genesys_init_usb_device_tables() 450 model.buttons = GENESYS_HAS_TRANSP_SW | GENESYS_HAS_EMAIL_SW in genesys_init_usb_device_tables() 522 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW | GENESYS_HAS_EMAIL_SW; in genesys_init_usb_device_tables() 588 model.buttons = GENESYS_HAS_SCAN_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_COPY_SW; in genesys_init_usb_device_tables() 641 model.buttons in genesys_init_usb_device_tables() [all...] |
H A D | gl843.cpp | 1675 s->buttons[BUTTON_SCAN_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1678 s->buttons[BUTTON_SCAN_SW].write((val & 0x01) == 0); in update_hardware_sensors() 1679 s->buttons[BUTTON_FILE_SW].write((val & 0x02) == 0); in update_hardware_sensors() 1680 s->buttons[BUTTON_EMAIL_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1681 s->buttons[BUTTON_COPY_SW].write((val & 0x08) == 0); in update_hardware_sensors() 1684 s->buttons[BUTTON_FILE_SW].write((val & 0x01) == 0); in update_hardware_sensors() 1685 s->buttons[BUTTON_COPY_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1686 s->buttons[BUTTON_TRANSP_SW].write((val & 0x40) == 0); in update_hardware_sensors() 1687 s->buttons[BUTTON_SCAN_SW].write((val & 0x08) == 0); in update_hardware_sensors() 1690 s->buttons[BUTTON_COPY_S in update_hardware_sensors() [all...] |
H A D | gl847.cpp | 1098 s->buttons[BUTTON_SCAN_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1099 s->buttons[BUTTON_FILE_SW].write((val & 0x02) == 0); in update_hardware_sensors() 1100 s->buttons[BUTTON_EMAIL_SW].write((val & 0x01) == 0); in update_hardware_sensors() 1101 s->buttons[BUTTON_COPY_SW].write((val & 0x08) == 0); in update_hardware_sensors() 1107 s->buttons[BUTTON_SCAN_SW].write((val & 0x02) == 0); in update_hardware_sensors() 1108 s->buttons[BUTTON_EMAIL_SW].write((val & 0x01) == 0); in update_hardware_sensors() 1109 s->buttons[BUTTON_COPY_SW].write((val & 0x08) == 0); in update_hardware_sensors() 1110 s->buttons[BUTTON_PDF4_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1114 s->buttons[BUTTON_PDF1_SW].write((val & 0x03) == 0x01); in update_hardware_sensors() 1115 s->buttons[BUTTON_PDF2_S in update_hardware_sensors() [all...] |
H A D | gl646.cpp | 2748 if (dev->model->buttons & GENESYS_HAS_SCAN_SW) { in update_hardware_sensors() 2751 session->buttons[BUTTON_SCAN_SW].write((value & 0x02) != 0); in update_hardware_sensors() 2754 session->buttons[BUTTON_SCAN_SW].write(value == 0x16); in update_hardware_sensors() 2757 session->buttons[BUTTON_SCAN_SW].write(value == 0x6c); in update_hardware_sensors() 2761 session->buttons[BUTTON_SCAN_SW].write((value & 0x20) == 0); in update_hardware_sensors() 2769 if (dev->model->buttons & GENESYS_HAS_EMAIL_SW) { in update_hardware_sensors() 2772 session->buttons[BUTTON_EMAIL_SW].write(value == 0x12); in update_hardware_sensors() 2776 session->buttons[BUTTON_EMAIL_SW].write((value & 0x08) == 0); in update_hardware_sensors() 2784 if (dev->model->buttons & GENESYS_HAS_COPY_SW) { in update_hardware_sensors() 2787 session->buttons[BUTTON_COPY_S in update_hardware_sensors() [all...] |
H A D | gl124.cpp | 1308 s->buttons[BUTTON_SCAN_SW].write((val & 0x01) == 0); in update_hardware_sensors() 1309 s->buttons[BUTTON_FILE_SW].write((val & 0x08) == 0); in update_hardware_sensors() 1310 s->buttons[BUTTON_EMAIL_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1311 s->buttons[BUTTON_COPY_SW].write((val & 0x02) == 0); in update_hardware_sensors() 1315 s->buttons[BUTTON_EXTRA_SW].write((val & 0x01) == 0); in update_hardware_sensors() 1316 s->buttons[BUTTON_SCAN_SW].write((val & 0x02) == 0); in update_hardware_sensors() 1317 s->buttons[BUTTON_COPY_SW].write((val & 0x04) == 0); in update_hardware_sensors() 1318 s->buttons[BUTTON_EMAIL_SW].write((val & 0x08) == 0); in update_hardware_sensors() 1319 s->buttons[BUTTON_FILE_SW].write((val & 0x10) == 0); in update_hardware_sensors()
|
H A D | genesys.h | 214 GenesysButton buttons[NUM_BUTTONS]; member
|
/third_party/libinput/tools/ |
H A D | libinput-debug-gui.c | 141 /* l/m/r mouse buttons */ 146 } buttons; member 661 const char *name = w->buttons.other_name; in draw_other_button() 665 if (!w->buttons.other) in draw_other_button() 691 if (w->buttons.l || w->buttons.m || w->buttons.r) { in draw_buttons() 693 if (w->buttons.l) in draw_buttons() 695 if (w->buttons.m) in draw_buttons() 697 if (w->buttons in draw_buttons() [all...] |
H A D | libinput-debug-tablet.c | 94 print_buttons(struct context *ctx, unsigned int *buttons, size_t sz) in print_buttons() argument 102 if (buttons[i] == 0) in print_buttons() 105 name = libevdev_event_code_get_name(EV_KEY, buttons[i]); in print_buttons() 108 print_line(" buttons: %s", buf); in print_buttons()
|
/third_party/node/doc/api_assets/ |
H A D | api.js | 140 const buttons = document.querySelectorAll('.copy-button'); 141 buttons.forEach((button) => {
|
/third_party/node/doc/api/assets/ |
H A D | api.js | 140 const buttons = document.querySelectorAll('.copy-button'); 141 buttons.forEach((button) => {
|
/third_party/python/Lib/tkinter/ |
H A D | simpledialog.py | 34 text='', buttons=[], default=None, cancel=None, 54 for num in range(len(buttons)): 55 s = buttons[num] 168 override if you do not want the standard buttons 423 "the buttons below would have been glowing " 426 buttons=["Yes", "No", "Cancel"],
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_searchbase.py | 133 buttons = frame.pack_slaves() 134 for spec, button in zip(others, buttons):
|
/third_party/libinput/test/ |
H A D | test-pointer.c | 419 } buttons[] = { in START_TEST() local 428 int events[2 * (ARRAY_LENGTH(buttons) + 1)]; in START_TEST() 433 /* Enable all tested buttons on the device */ in START_TEST() 434 for (i = 0; i < 2 * ARRAY_LENGTH(buttons);) { in START_TEST() 435 button = buttons[i / 2].code; in START_TEST() 451 for (i = 0; i < ARRAY_LENGTH(buttons); ++i) { in START_TEST() 452 test_button_event(dev, buttons[i].code, 1); in START_TEST() 460 /* Mark all released buttons until device is removed */ in START_TEST() 478 for (i = 0; i < ARRAY_LENGTH(buttons); ++i) { in START_TEST() 479 if (buttons[ in START_TEST() 3751 struct range buttons = {BTN_LEFT, BTN_TASK + 1}; TEST_COLLECTION() local [all...] |
/third_party/python/Lib/idlelib/ |
H A D | debugger.py | 141 self.buttons = bl = [] 237 for b in self.buttons: 248 for b in self.buttons:
|