Home
last modified time | relevance | path

Searched refs:buttons (Results 1 - 25 of 314) sorted by relevance

12345678910>>...13

/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/
H A Dtest_gamepad.py36 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...]
/kernel/linux/linux-5.10/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 in dc_pad_callback()
[all...]
H A Danalog.c100 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 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 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 >> (( in analog_decode()
[all...]
/third_party/libinput/src/
H A Devdev-mt-touchpad-buttons.c84 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...]
/kernel/linux/linux-5.10/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()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-5.10/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 Dlogibm.c64 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 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()
/kernel/linux/linux-6.6/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 Dlogibm.c61 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 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()
/foundation/arkui/ace_engine/advanced_ui_component/popup/interfaces/
H A Dpopup.js203 buttons: x29.buttons
215 buttons: x29.buttons
227 buttons: x29.buttons
247 this.__buttons = new SynchedPropertyObjectOneWayPU(m29.buttons, this, "buttons");
311 if (k29.buttons === undefined) {
361 this.__buttons.reset(j29.buttons);
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js92 this.buttons = undefined;
153 if (h34.buttons !== undefined) {
154 this.buttons = h34.buttons;
282 buttons: this.buttons,
296 buttons: this.buttons,
648 this.buttons = [];
650 this.buttons
[all...]
/third_party/backends/backend/
H A Dplustek-pp_procfs.c201 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...]
/third_party/lzma/CPP/Windows/Control/
H A DToolBar.h20 // 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/src/
H A Dinput.c109 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...]
/kernel/linux/linux-5.10/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()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/x86-android-tablets/
H A Dcore.c127 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()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_alert_dialog_ffi.cpp155 properties.buttons.emplace_back(buttonInfo); in ParseButtonObj()
193 CArrNativeAlertDialogButtonOptions buttons, in ParseButtonArray()
196 if (buttons.size <= 0) { in ParseButtonArray()
199 for (int32_t i = 0; i < buttons.size; i++) { in ParseButtonArray()
200 NativeAlertDialogButtonOptions buttonItem = buttons.head[i]; in ParseButtonArray()
207 CArrNativeAlertDialogButtonOptions buttons, in FfiOHOSShowAlertDialogParamWithOptions()
215 // Parse buttons array. in FfiOHOSShowAlertDialogParamWithOptions()
216 ParseButtonArray(properties, buttons, "buttons"); in FfiOHOSShowAlertDialogParamWithOptions()
218 // Parse buttons directio in FfiOHOSShowAlertDialogParamWithOptions()
191 ParseButtonArray( DialogProperties& properties, CArrNativeAlertDialogButtonOptions buttons, const std::string& property) ParseButtonArray() argument
205 FfiOHOSShowAlertDialogParamWithOptions( NativeAlertDialogParam alertDialog, CArrNativeAlertDialogButtonOptions buttons, int32_t buttonDirection) FfiOHOSShowAlertDialogParamWithOptions() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/prompt/
H A Dcj_prompt_ffi.cpp41 LOGE("Invalid buttons info"); in CheckFrontendLegality()
49 std::vector<ButtonInfo> buttons; in CreateButtonInfoVector() local
52 LOGE("Supports 1 - %{public}d buttons", numMax); in CreateButtonInfoVector()
57 buttons.emplace_back(button); in CreateButtonInfoVector()
59 return buttons; in CreateButtonInfoVector()
95 std::vector<ButtonInfo> buttons = CreateButtonInfoVector(buttonsInfo, size, SHOW_DIALOG_BUTTON_NUM_MAX); in FfiPromptShowDialog() local
102 frontend->ShowDialog(title, message, buttons, std::move(callback), callbacks); in FfiPromptShowDialog()
112 std::vector<ButtonInfo> buttons = CreateButtonInfoVector(buttonsInfo, size, SHOW_ACTION_MENU_BUTTON_NUM_MAX); in FfiPromptShowActionMenu() local
115 frontend->ShowActionMenu(title, buttons, std::move(callback)); in FfiPromptShowActionMenu()
/foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces/
H A Dsegmentbutton.js229 get buttons() {
233 set buttons(val) {
261 this.buttons = new SegmentButtonItemOptionsArray(options.buttons);
264 this.buttons.forEach(button => {
284 buttons: options.buttons,
306 buttons: options.buttons,
1372 if (this.options === void 0 || this.options.buttons
[all...]

Completed in 14 milliseconds

12345678910>>...13