Searched defs:buttons (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-head/sys/dev/evdev/
H A Devdev_utils.c271 evdev_push_mouse_btn(struct evdev_dev *evdev, int buttons) argument
277 buttons & (1 << i));
/freebsd-head/contrib/dialog/
H A Dmsgbox.c54 const char **buttons = dlg_ok_label(); local
81 dlg_button_layout(buttons, &min_width);
102 dlg_register_buttons(dialog, "msgbox", buttons);
116 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
130 if (!fkey && (check = dlg_char_to_button(key, buttons)) >= 0) {
148 button = dlg_next_button(buttons, button);
153 buttons, button,
157 button = dlg_prev_button(buttons, button);
162 buttons, button,
H A Dyesno.c31 * Display a dialog box with two buttons - Yes and No.
53 const char **buttons = dlg_yes_labels(); local
74 dlg_button_layout(buttons, &min_width);
90 dlg_register_buttons(dialog, "yesno", buttons);
103 buttons, button, FALSE, width);
115 if ((code = dlg_char_to_button(key, buttons)) >= 0) {
123 button = dlg_next_button(buttons, button);
128 buttons, button,
132 button = dlg_prev_button(buttons, button);
137 buttons, butto
[all...]
H A Dinputbox.c83 const char **buttons = dlg_ok_labels(); local
118 dlg_button_layout(buttons, &width);
127 dlg_register_buttons(dialog, "inputbox", buttons);
169 dlg_draw_buttons(dialog, height - 2, 0, buttons, state, FALSE, width);
214 if (!fkey && (code = dlg_char_to_button(key, buttons)) >= 0) {
H A Dpause.c72 const char **buttons = dlg_ok_labels(); local
73 bool have_buttons = (dlg_button_count(buttons) != 0);
105 dlg_button_layout(buttons, &width);
121 dlg_register_buttons(dialog, "pause", buttons);
181 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
215 button = dlg_next_button(buttons, button);
220 buttons, button,
224 button = dlg_prev_button(buttons, button);
229 buttons, button,
H A Dprogressbox.c261 reprint_lines(MY_OBJ * obj, int buttons) argument
263 int want = getmaxy(obj->text) - (buttons ? 2 : 0);
289 const char **buttons = dlg_ok_label(); local
302 dlg_register_buttons(obj->obj.win, "progressbox", buttons);
313 buttons, button,
321 if (!fkey && (check = dlg_char_to_button(key, buttons)) >= 0) {
329 button = dlg_next_button(buttons, button);
333 button = dlg_prev_button(buttons, button);
H A Drangebox.c217 const char **buttons = dlg_ok_labels(); local
253 dlg_button_layout(buttons, &width);
297 dlg_register_buttons(dialog, "rangebox", buttons);
319 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
329 if ((key2 = dlg_char_to_button(key, buttons)) >= 0) {
H A Dtailbox.c34 const char **buttons; member in struct:__anon30
240 if (!fkey && dlg_char_to_button(ch, obj->buttons) == 0) {
325 const char **buttons = 0; local
369 buttons = dlg_exit_label();
370 dlg_button_layout(buttons, &min_width);
371 dlg_draw_buttons(dialog, height - (2 * MARGIN), 0, buttons, FALSE,
388 obj->buttons = buttons;
392 dlg_register_buttons(dialog, "tailbox", buttons);
416 dlg_button_layout(buttons,
[all...]
H A Dtimebox.c186 const char **buttons = dlg_ok_labels(); local
218 dlg_button_layout(buttons, &width);
231 dlg_register_buttons(dialog, "timebox", buttons);
294 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
302 if ((key2 = dlg_char_to_button(key, buttons)) >= 0) {
H A Dchecklist.c206 const char **buttons = dlg_ok_labels(); local
269 dlg_button_layout(buttons, &width);
287 dlg_register_buttons(dialog, widget_name, buttons);
379 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
481 } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
564 button = dlg_prev_button(buttons, button);
565 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
569 button = dlg_next_button(buttons, button);
570 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
H A Ddlg_keys.c37 bool buttons; /* true only for dlg_register_buttons() */ variable
120 dlg_register_buttons(WINDOW *win, const char *name, const char **buttons) argument
126 if (buttons == 0)
129 for (n = 0; buttons[n] != 0; ++n) {
130 int curses_key = dlg_button_to_char(buttons[n]);
155 p->buttons = TRUE;
183 /* the user-defined and buttons-bindings all are length=1 */
245 if (p->buttons
265 * buttons on the widget such as "OK".
H A Dtreeview.c211 const char **buttons = dlg_ok_labels(); local
265 dlg_button_layout(buttons, &width);
274 dlg_register_buttons(dialog, widget_name, buttons);
357 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
442 } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
524 button = dlg_prev_button(buttons, button);
525 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
529 button = dlg_next_button(buttons, button);
530 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
H A Deditbox.c364 const char **buttons = dlg_ok_labels(); local
390 dlg_button_layout(buttons, &mincols);
400 dlg_register_buttons(dialog, "editbox", buttons);
489 buttons,
652 if (!fkey && (code = dlg_char_to_button(key, buttons)) >= 0) {
H A Dmenubox.c351 const char **buttons = dlg_ok_labels(); local
392 dlg_button_layout(buttons, &width);
403 dlg_register_buttons(dialog, "menubox", buttons);
441 dlg_register_buttons(menu, "menu", buttons);
510 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
571 } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
653 button = dlg_prev_button(buttons, button);
654 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
658 button = dlg_next_button(buttons, button);
659 dlg_draw_buttons(dialog, height - 2, 0, buttons, butto
[all...]
H A Dtextbox.c36 const char **buttons; member in struct:__anon31
725 obj.buttons = dlg_exit_label();
740 dlg_button_layout(obj.buttons, &min_width);
756 dlg_register_buttons(dialog, "textbox", obj.buttons);
769 dlg_draw_buttons(dialog, PAGE_LENGTH + 2, 0, obj.buttons, button, FALSE, width);
826 if (!fkey && (code = dlg_char_to_button(key, obj.buttons)) >= 0) {
843 button = dlg_next_button(obj.buttons, button);
848 obj.buttons, button,
852 button = dlg_prev_button(obj.buttons, button);
857 obj.buttons, butto
[all...]
/freebsd-head/usr.sbin/bsdinstall/partedit/
H A Ddiskeditor.c69 const char *buttons[] = local
124 dlg_button_layout(buttons, &min_width);
136 dlg_register_buttons(dialog, "diskeditorbox", buttons);
147 dlg_register_buttons(partitions, "partlist", buttons);
151 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons,
178 if ((i = dlg_char_to_button(key, buttons)) >= 0) {
181 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons,
191 cur_button = dlg_next_button(buttons, cur_button);
195 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons,
199 cur_button = dlg_prev_button(buttons, cur_butto
[all...]
/freebsd-head/sys/dev/syscons/
H A Dsysmouse.c90 smdev_evdev_write(int x, int y, int z, int buttons) argument
112 if (buttons & (1 << 6))
114 else if (buttons & (1 << 5))
116 buttons &= ~((1 << 5)|(1 << 6));
122 evdev_push_mouse_btn(sysmouse_evdev, buttons);
143 hw->buttons = 10; /* XXX unknown */
270 mouse_status.button = info->u.data.buttons;
320 /* buttons 4-10 */
H A Dscmouse.c67 int buttons; member in struct:old_mouse_data
693 mouse->u.data.buttons = swapb[old_mouse->u.data.buttons & 0x7];
698 old_mouse->u.data.buttons = swapb[scp->mouse_buttons & 0x7];
763 mouse->u.data.buttons = scp->mouse_buttons;
782 f = cur_scp->mouse_buttons ^ mouse->u.data.buttons;
783 cur_scp->mouse_buttons = mouse->u.data.buttons;
791 * If any buttons are down or the mouse has moved a lot,
794 if (((mouse->operation == MOUSE_ACTION) && mouse->u.data.buttons)
/freebsd-head/sys/dev/cyapa/
H A Dcyapa.h83 uint8_t buttons; /* 0x13 */ member in struct:cyapa_cap
/freebsd-head/usr.sbin/bluetooth/bthidd/
H A Dbtuinput.c362 /* Advertise mouse buttons */
477 int32_t buttons, int32_t obuttons)
496 if ((buttons & mask) == (obuttons & mask))
499 (buttons & mask) != 0) < 0)
476 uinput_rep_mouse(int32_t fd, int32_t x, int32_t y, int32_t z, int32_t t, int32_t buttons, int32_t obuttons) argument
/freebsd-head/lib/libvgl/
H A Dmouse.c241 VGLMouseButtons = mouseinfo.u.data.buttons;
331 VGLMouseButtons = mouseinfo.u.data.buttons;
353 VGLMouseStatus(int *x, int *y, char *buttons) argument
358 *buttons = VGLMouseButtons;
/freebsd-head/sys/dev/vt/
H A Dvt_sysmouse.c124 sysmouse_evdev_store(int x, int y, int z, int buttons) argument
146 if (buttons & (1 << 6))
148 else if (buttons & (1 << 5))
150 buttons &= ~((1 << 5)|(1 << 6));
156 evdev_push_mouse_btn(sysmouse_evdev, buttons);
224 sysmouse_status.button = mi->u.data.buttons;
374 hw->buttons = 10;
/freebsd-head/sys/dev/usb/gadget/
H A Dg_mouse.c95 uint8_t buttons; member in struct:g_mouse_data
180 sc->sc_data.buttons = 0;
370 sc->sc_data.buttons ^= BUT_0;
377 sc->sc_data.buttons = 0;
/freebsd-head/sys/dev/adb/
H A Dadb_mouse.c86 int buttons; member in struct:adb_mouse_softc
166 sc->hw.buttons = 2;
178 sc->buttons = 0;
224 sc->hw.buttons = r1[7];
227 sc->hw.buttons, sc->mode.resolution,description);
345 int buttons, tmp_buttons; local
355 buttons = 0;
356 buttons |= !(data[0] & 0x80);
357 buttons |= !(data[1] & 0x80) << 1;
364 buttons |
[all...]
/freebsd-head/usr.sbin/bhyve/
H A Dusb_mouse.c118 0x81, 0x02, /* INPUT (Data,Var,Abs); 3 buttons */
146 uint8_t buttons; /* bits: 0 left, 1 right, 2 middle */ member in struct:umouse_report
276 sc->um_report.buttons = 0;
280 sc->um_report.buttons |= 0x01; /* left */
282 sc->um_report.buttons |= 0x04; /* middle */
284 sc->um_report.buttons |= 0x02; /* right */

Completed in 112 milliseconds

12