Home
last modified time | relevance | path

Searched refs:button (Results 26 - 50 of 230) sorted by relevance

12345678910

/third_party/toybox/kconfig/lxdialog/
H A Dinputbox.c48 int input_x = 0, scroll = 0, key = 0, button = -1; in dialog_inputbox() local
118 if (button == -1) { /* Input box selected */ in dialog_inputbox()
181 switch (button) { in dialog_inputbox()
183 button = 1; /* Indicates "Cancel" button is selected */ in dialog_inputbox()
187 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
193 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
201 switch (button) { in dialog_inputbox()
203 button in dialog_inputbox()
[all...]
H A Dchecklist.c115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
283 button = 1; in dialog_checklist()
295 return button; in dialog_checklist()
299 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist()
300 ? 1 : (button > 1 ? 0 : button); in dialog_checklist()
302 print_buttons(dialog, height, width, button); in dialog_checklist()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
H A DRbnfDemo.java262 Button button = new Button("+100"); in createDemoFrame()
263 button.addActionListener( new ActionListener() { in createDemoFrame()
269 panel2.add(button); in createDemoFrame()
270 button = new Button("+10"); in createDemoFrame()
271 button.addActionListener( new ActionListener() { in createDemoFrame()
277 panel2.add(button); in createDemoFrame()
278 button = new Button("+1"); in createDemoFrame()
279 button.addActionListener( new ActionListener() { in createDemoFrame()
285 panel2.add(button); in createDemoFrame()
286 button in createDemoFrame()
[all...]
/kernel/linux/linux-5.10/scripts/kconfig/lxdialog/
H A Dyesno.c31 int i, x, y, key = 0, button = 0; in dialog_yesno() local
80 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno()
82 print_buttons(dialog, height, width, button); in dialog_yesno()
88 return button; in dialog_yesno()
H A Dinputbox.c35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
109 if (button == -1) { /* Input box selected */ in dialog_inputbox()
232 switch (button) { in dialog_inputbox()
234 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
238 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
244 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
252 switch (button) { in dialog_inputbox()
254 button in dialog_inputbox()
[all...]
H A Dchecklist.c108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
277 button = 1; in dialog_checklist()
289 return button; in dialog_checklist()
293 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist()
294 ? 1 : (button > 1 ? 0 : button); in dialog_checklist()
296 print_buttons(dialog, height, width, button); in dialog_checklist()
/kernel/linux/linux-6.6/scripts/kconfig/lxdialog/
H A Dyesno.c31 int i, x, y, key = 0, button = 0; in dialog_yesno() local
80 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno()
82 print_buttons(dialog, height, width, button); in dialog_yesno()
88 return button; in dialog_yesno()
H A Dinputbox.c35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
109 if (button == -1) { /* Input box selected */ in dialog_inputbox()
232 switch (button) { in dialog_inputbox()
234 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
238 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
244 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
252 switch (button) { in dialog_inputbox()
254 button in dialog_inputbox()
[all...]
H A Dchecklist.c108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
277 button = 1; in dialog_checklist()
289 return button; in dialog_checklist()
293 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist()
294 ? 1 : (button > 1 ? 0 : button); in dialog_checklist()
296 print_buttons(dialog, height, width, button); in dialog_checklist()
/third_party/skia/third_party/externals/angle2/util/x11/
H A DX11Window.cpp505 MouseButton button = MOUSEBUTTON_UNKNOWN; in processEvent() local
508 // The mouse wheel updates are sent via button events. in processEvent()
509 switch (xEvent.xbutton.button) in processEvent()
523 button = MOUSEBUTTON_LEFT; in processEvent()
526 button = MOUSEBUTTON_MIDDLE; in processEvent()
529 button = MOUSEBUTTON_RIGHT; in processEvent()
532 button = MOUSEBUTTON_BUTTON4; in processEvent()
535 button = MOUSEBUTTON_BUTTON5; in processEvent()
549 if (button != MOUSEBUTTON_UNKNOWN) in processEvent()
552 event.MouseButton.Button = button; in processEvent()
563 MouseButton button = MOUSEBUTTON_UNKNOWN; processEvent() local
[all...]
/third_party/skia/third_party/externals/imgui/backends/
H A Dimgui_impl_glut.cpp184 int button = -1; in ImGui_ImplGLUT_MouseFunc() local
185 if (glut_button == GLUT_LEFT_BUTTON) button = 0; in ImGui_ImplGLUT_MouseFunc()
186 if (glut_button == GLUT_RIGHT_BUTTON) button = 1; in ImGui_ImplGLUT_MouseFunc()
187 if (glut_button == GLUT_MIDDLE_BUTTON) button = 2; in ImGui_ImplGLUT_MouseFunc()
188 if (button != -1 && state == GLUT_DOWN) in ImGui_ImplGLUT_MouseFunc()
189 io.MouseDown[button] = true; in ImGui_ImplGLUT_MouseFunc()
190 if (button != -1 && state == GLUT_UP) in ImGui_ImplGLUT_MouseFunc()
191 io.MouseDown[button] = false; in ImGui_ImplGLUT_MouseFunc()
195 void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y) in ImGui_ImplGLUT_MouseWheelFunc() argument
203 (void)button; // Unuse in ImGui_ImplGLUT_MouseWheelFunc()
[all...]
/kernel/linux/linux-5.10/drivers/staging/unisys/visorinput/
H A Dvisorinput.c607 int xmotion, ymotion, button; in visorinput_channel_interrupt() local
646 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
647 if (button < 0) in visorinput_channel_interrupt()
649 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
653 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
654 if (button < 0) in visorinput_channel_interrupt()
656 input_report_key(visorinput_dev, button, 0); in visorinput_channel_interrupt()
660 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
661 if (button < 0) in visorinput_channel_interrupt()
663 input_report_key(visorinput_dev, button, in visorinput_channel_interrupt()
[all...]
/third_party/typescript/tests/baselines/reference/
H A DtsxExternalModuleEmit1.js11 // Should see var button_1 = require('./button') here
12 import { Button } from './button';
22 //// [button.tsx]
28 return <button>Some button</button>;
33 //// [button.jsx]
59 return <button>Some button</button>;
[all...]
H A DcheckJsxChildrenProperty12.js30 return (<button>Hello</button>);
78 return (<button>Hello</button>);
H A DcheckJsxChildrenProperty13.js25 return (<button>Hello</button>);
68 return (<button>Hello</button>);
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
H A Dem28xx-input.c97 * it seems that 0xFE indicates that a button is still hold in em28xx_get_key_terratec()
98 * down, while 0xff indicates that no button is hold down. in em28xx_get_key_terratec()
526 const struct em28xx_button *button; in em28xx_query_buttons() local
528 button = &dev->board.buttons[j]; in em28xx_query_buttons()
530 /* Check if button uses the current address */ in em28xx_query_buttons()
531 if (button->reg_r != dev->button_polling_addresses[i]) { in em28xx_query_buttons()
535 /* Determine if button is and was pressed last time */ in em28xx_query_buttons()
536 is_pressed = regval & button->mask; in em28xx_query_buttons()
538 & button->mask; in em28xx_query_buttons()
539 if (button in em28xx_query_buttons()
629 const struct em28xx_button *button = &dev->board.buttons[i]; em28xx_init_buttons() local
[all...]
/kernel/linux/linux-6.6/drivers/media/usb/em28xx/
H A Dem28xx-input.c87 * it seems that 0xFE indicates that a button is still hold in em28xx_get_key_terratec()
88 * down, while 0xff indicates that no button is hold down. in em28xx_get_key_terratec()
516 const struct em28xx_button *button; in em28xx_query_buttons() local
518 button = &dev->board.buttons[j]; in em28xx_query_buttons()
520 /* Check if button uses the current address */ in em28xx_query_buttons()
521 if (button->reg_r != dev->button_polling_addresses[i]) { in em28xx_query_buttons()
525 /* Determine if button is and was pressed last time */ in em28xx_query_buttons()
526 is_pressed = regval & button->mask; in em28xx_query_buttons()
528 & button->mask; in em28xx_query_buttons()
529 if (button in em28xx_query_buttons()
619 const struct em28xx_button *button = &dev->board.buttons[i]; em28xx_init_buttons() local
[all...]
/third_party/libinput/test/
H A Dtest-pointer.c367 test_button_event(struct litest_device *dev, unsigned int button, int state) in test_button_event() argument
371 litest_button_click_debounced(dev, li, button, state); in test_button_event()
374 litest_assert_button_event(li, button, in test_button_event()
400 /* Skip middle button test on trackpoints (used for scrolling) */ in START_TEST()
430 int button; in START_TEST() local
435 button = buttons[i / 2].code; in START_TEST()
437 events[i++] = button; in START_TEST()
475 button = libinput_event_pointer_get_button(pevent); in START_TEST()
479 if (buttons[i].code == button) { in START_TEST()
1292 /* Change while button i in START_TEST()
1437 uint32_t methods, button; START_TEST() local
1578 litest_enable_scroll_button_lock(struct litest_device *dev, unsigned int button) litest_enable_scroll_button_lock() argument
2096 uint32_t button; START_TEST() local
2126 uint32_t button; START_TEST() local
2592 unsigned int button; START_TEST() local
2675 unsigned int button; START_TEST() local
2740 unsigned int button; START_TEST() local
3149 unsigned int button = _i; /* ranged test */ START_TEST() local
3196 unsigned int button = _i; /* ranged test */ START_TEST() local
3329 unsigned int button = _i; /* ranged test */ START_TEST() local
[all...]
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/
H A DDemoApplet.java21 * A simple Applet that shows a button. When pressed, the button
44 Button button = new Button("Transliteration Demo"); in init()
45 button.addActionListener(new ActionListener() { in init()
60 add(button); in init()
62 Dimension size = button.getPreferredSize(); in init()
H A DInfoDialog.java27 protected Button button; field in InfoDialog
51 button = new Button("Hide"); in InfoDialog()
52 button.addActionListener(new ActionListener() { in InfoDialog()
59 bottom.add(button); in InfoDialog()
/kernel/linux/linux-5.10/drivers/input/rmi4/
H A Drmi_f30.c102 struct f30_data *f30, unsigned int button) in rmi_f30_report_button()
104 unsigned int reg_num = button >> 3; in rmi_f30_report_button()
105 unsigned int bit_num = button & 0x07; in rmi_f30_report_button()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
110 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button()
111 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button()
210 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument
212 int byte_position = button >> 3; in rmi_f30_is_valid_button()
213 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
217 * ctrl3 -> data == 1 -> actual button in rmi_f30_is_valid_button()
101 rmi_f30_report_button(struct rmi_function *fn, struct f30_data *f30, unsigned int button) rmi_f30_report_button() argument
229 unsigned int button = BTN_LEFT; rmi_f30_map_gpios() local
[all...]
/kernel/linux/linux-6.6/drivers/input/rmi4/
H A Drmi_f30.c102 struct f30_data *f30, unsigned int button) in rmi_f30_report_button()
104 unsigned int reg_num = button >> 3; in rmi_f30_report_button()
105 unsigned int bit_num = button & 0x07; in rmi_f30_report_button()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
110 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button()
111 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button()
210 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument
212 int byte_position = button >> 3; in rmi_f30_is_valid_button()
213 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
217 * ctrl3 -> data == 1 -> actual button in rmi_f30_is_valid_button()
101 rmi_f30_report_button(struct rmi_function *fn, struct f30_data *f30, unsigned int button) rmi_f30_report_button() argument
229 unsigned int button = BTN_LEFT; rmi_f30_map_gpios() local
[all...]
/third_party/backends/backend/
H A Dhp4200_lm9830.c129 * This function prints what button was pressed (the time before this
136 unsigned char button;
138 pv8630_read_buttons (fd, &button);
140 if (button & 0x08)
142 if (button & 0x10)
144 if (button & 0x20)
146 if ((button & 0x38) == 0)
/kernel/linux/linux-5.10/drivers/input/misc/
H A Dkeyspan_remote.c41 * Currently there are 15 and 17 button models so RESERVED codes
88 u8 button; member
167 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) in keyspan_report_button() argument
171 input_event(input, EV_MSC, MSC_SCAN, button); in keyspan_report_button()
172 input_report_key(input, remote->keymap[button], press); in keyspan_report_button()
242 * message. We need to parse out the system code, button code, in keyspan_check_data()
269 message.button = 0; in keyspan_check_data()
274 message.button = message.button << 1; in keyspan_check_data()
278 message.button in keyspan_check_data()
[all...]
/kernel/linux/linux-6.6/drivers/input/misc/
H A Dkeyspan_remote.c41 * Currently there are 15 and 17 button models so RESERVED codes
88 u8 button; member
167 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) in keyspan_report_button() argument
171 input_event(input, EV_MSC, MSC_SCAN, button); in keyspan_report_button()
172 input_report_key(input, remote->keymap[button], press); in keyspan_report_button()
242 * message. We need to parse out the system code, button code, in keyspan_check_data()
269 message.button = 0; in keyspan_check_data()
274 message.button = message.button << 1; in keyspan_check_data()
278 message.button in keyspan_check_data()
[all...]

Completed in 20 milliseconds

12345678910