Home
last modified time | relevance | path

Searched refs:buttons (Results 1 – 25 of 141) sorted by relevance

123456

/netbsd-src/sys/arch/dreamcast/dev/maple/
H A Dmms.c50 uint32_t buttons; member
220 int dx = 0, dy = 0, dz = 0, buttons = 0; in mms_intr() local
227 data->buttons &= MMS_BUTTON_MASK; in mms_intr()
228 buttonchg = sc->sc_oldbuttons ^ data->buttons; in mms_intr()
229 sc->sc_oldbuttons = data->buttons; in mms_intr()
236 if ((data->buttons & MMS_BUTTON_A) == 0) in mms_intr()
237 buttons |= 0x01; in mms_intr()
238 if ((data->buttons & MMS_BUTTON_C) == 0) in mms_intr()
239 buttons |= 0x02; in mms_intr()
240 if ((data->buttons & MMS_BUTTON_B) == 0) in mms_intr()
[all …]
/netbsd-src/sys/arch/macppc/dev/
H A Dams.c472 int i, button_bit, max_byte, mask, buttons, dx, dy; in ms_processevent() local
475 buttons = 0; in ms_processevent()
488 buttons = (~event->bytes[2]) & 0xff; in ms_processevent()
490 buttons = (event->bytes[0] & 0x80) ? 0 : 1; in ms_processevent()
495 buttons = (~event->bytes[2]) & 0x07; in ms_processevent()
497 buttons = (event->bytes[0] & 0x80) ? 0 : 1; in ms_processevent()
504 buttons |= button_bit; in ms_processevent()
506 buttons &= ~button_bit; in ms_processevent()
512 buttons |= button_bit; in ms_processevent()
514 buttons &= ~button_bit; in ms_processevent()
[all …]
H A Daed.c170 event->u.m.buttons |= aed_sc->sc_buttons; in aed_input()
171 new_event.u.m.buttons |= aed_sc->sc_buttons; in aed_input()
204 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
216 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
225 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
238 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
250 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
262 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
274 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
H A Dpbms.c479 uint32_t buttons; in pbms_intr() local
513 buttons = !!data[sc->sc_datalen - 1]; in pbms_intr()
538 if (!compute_delta(sc, &dx, &dy, &dz, &buttons)) in pbms_intr()
542 if ((dx != 0 || dy != 0 || dz != 0 || buttons != sc->sc_buttons) && in pbms_intr()
545 wsmouse_input(sc->sc_wsmousedev, buttons, dx, -dy, dz, 0, in pbms_intr()
549 sc->sc_buttons = buttons; in pbms_intr()
610 uint32_t * buttons) in compute_delta() argument
/netbsd-src/sys/dev/adb/
H A Dadb_ms.c562 int buttons = 0, mask, dx, dy, i; in adbms_process_event() local
586 buttons = (~buffer[3]) & 0xff; in adbms_process_event()
588 buttons = (buffer[1] & 0x80) ? 0 : 1; in adbms_process_event()
593 buttons = (~buffer[2]) & 0x07; in adbms_process_event()
595 buttons = (buffer[0] & 0x80) ? 0 : 1; in adbms_process_event()
602 buttons |= button_bit; in adbms_process_event()
604 buttons &= ~button_bit; in adbms_process_event()
610 buttons |= button_bit; in adbms_process_event()
612 buttons &= ~button_bit; in adbms_process_event()
661 DPRINTF("buttons: %02x\n", buttons); in adbms_process_event()
[all …]
H A Dadb_ktm.c295 int buttons = 0, mask, dx, dy, i; in ktm_process_event() local
302 buttons |= button_bit; in ktm_process_event()
304 buttons &= ~button_bit; in ktm_process_event()
310 buttons |= button_bit; in ktm_process_event()
312 buttons &= ~button_bit; in ktm_process_event()
345 wsmouse_input(sc->sc_wsmousedev, buttons, in ktm_process_event()
/netbsd-src/sys/arch/mac68k/dev/
H A Dams.c239 * buffer[3] = buffer[4] = 0xff when no buttons in ems_init()
255 * enable buttons = 0111b in ems_init()
452 int i, button_bit, max_byte, mask, buttons; in ms_processevent()
455 buttons = 0; in ms_processevent()
468 buttons = (~event->bytes[2]) & 0xff; in ms_processevent()
470 buttons = (event->bytes[0] & 0x80) ? 0 : 1; in ms_processevent()
475 buttons = (~event->bytes[2]) & 0x07; in ms_processevent()
477 buttons = (event->bytes[0] & 0x80) ? 0 : 1; in ms_processevent()
480 /* Classic Mouse Protocol (up to 2 buttons) */ in ms_processevent()
484 buttons | in ms_processevent()
448 int i, button_bit, max_byte, mask, buttons; ms_processevent() local
[all...]
H A Daed.c190 event->u.m.buttons |= aed_sc->sc_buttons; in aed_emulate_mouse()
191 new_event.u.m.buttons |= aed_sc->sc_buttons; in aed_emulate_mouse()
226 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
238 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
247 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
260 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
272 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
284 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
296 new_event.u.m.buttons = aed_sc->sc_buttons; in aed_emulate_mouse()
/netbsd-src/sys/dev/ic/
H A Dspic.c143 int dz, buttons; in spic_intr() local
186 buttons = 0; in spic_intr()
188 buttons |= 1 << 1; in spic_intr()
190 buttons |= 1 << 5; in spic_intr()
219 if (dz != 0 || buttons != sc->sc_buttons) { in spic_intr()
223 buttons, dz, v1, v2); in spic_intr()
225 sc->sc_buttons = buttons; in spic_intr()
227 wsmouse_input(sc->sc_wsmousedev, buttons, 0, 0, dz, 0, in spic_intr()
/netbsd-src/sys/dev/dec/
H A Ddzms.c78 u_int buttons; member
206 sc->buttons = 0; in dzms_input()
208 sc->buttons |= WSMS_BUTTON1; in dzms_input()
210 sc->buttons |= WSMS_BUTTON2; in dzms_input()
212 sc->buttons |= WSMS_BUTTON3; in dzms_input()
228 sc->buttons, in dzms_input()
/netbsd-src/sys/arch/vax/uba/
H A Dqvms.c81 u_int buttons; member
209 sc->buttons = 0; in qvms_input()
211 sc->buttons |= WSMS_BUTTON1; in qvms_input()
213 sc->buttons |= WSMS_BUTTON2; in qvms_input()
215 sc->buttons |= WSMS_BUTTON3; in qvms_input()
231 sc->buttons, in qvms_input()
/netbsd-src/sys/arch/arc/dev/
H A Dopms.c372 static u_char buttons; in opmsintr() local
386 buttons = kbd_data_read_1(); in opmsintr()
387 if ((buttons & 0xc0) == 0) in opmsintr()
403 buttons = ((buttons & PS2LBUTMASK) << 2) | in opmsintr()
404 ((buttons & (PS2RBUTMASK | PS2MBUTMASK)) >> 1); in opmsintr()
405 changed = ((buttons ^ sc->sc_status) & BUTSTATMASK) << 3; in opmsintr()
406 sc->sc_status = buttons | (sc->sc_status & ~BUTSTATMASK) | in opmsintr()
415 buffer[0] = 0x80 | (buttons & BUTSTATMASK); in opmsintr()
/netbsd-src/sys/arch/pmax/tc/
H A Ddtms.c143 int buttons, dx, dy; in dtms_handler() local
152 buttons = tmp & 1; in dtms_handler()
154 buttons |= 4; in dtms_handler()
156 buttons |= 2; in dtms_handler()
171 buttons, in dtms_handler()
/netbsd-src/sys/arch/ews4800mips/sbd/
H A Dkbms_sbdio.c221 u_int buttons; in kbms_sbdio_intr() local
222 buttons = ~buf[0] & 0x7; in kbms_sbdio_intr()
224 u_int b1 = (buttons & 0x1) << 2; in kbms_sbdio_intr()
225 u_int b3 = (buttons & 0x4) >> 2; in kbms_sbdio_intr()
226 buttons = (buttons & 0x2) | b1 | b3; in kbms_sbdio_intr()
231 mouse_debug_print(buttons, x, y); in kbms_sbdio_intr()
234 buttons, in kbms_sbdio_intr()
493 mouse_debug_print(u_int buttons, int x, int y) in mouse_debug_print() argument
511 fb_drawchar(480 + i * 12, k, buttons & j ? '|' : '.'); in mouse_debug_print()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-java-swing/
H A DHello.java39 JPanel buttons = new JPanel(); in main() local
40 buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); in main()
41 buttons.add(button); in main()
44 frame.getContentPane().add(buttons, BorderLayout.SOUTH); in main()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-java-awt/
H A DHello.java42 Container buttons = new Container(); in main() local
43 buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); in main()
44 buttons.add(button); in main()
47 frame.add(buttons, BorderLayout.SOUTH); in main()
/netbsd-src/sys/dev/pckbport/
H A Dalps.c826 u_int buttons; in pms_alps_decode_trackstick_packet_v7() local
842 buttons = 0; in pms_alps_decode_trackstick_packet_v7()
843 buttons = (u_int)((left << 0) | (middle << 1) | (right << 2)); in pms_alps_decode_trackstick_packet_v7()
847 buttons, in pms_alps_decode_trackstick_packet_v7()
879 u_int buttons; in pms_alps_decode_touchpad_packet_v7() local
952 buttons = 0; in pms_alps_decode_touchpad_packet_v7()
955 buttons |= button << 0; /* Left button */ in pms_alps_decode_touchpad_packet_v7()
958 buttons |= button << 1; /* Middle button */ in pms_alps_decode_touchpad_packet_v7()
960 buttons |= button << 2; /* Right button */ in pms_alps_decode_touchpad_packet_v7()
963 buttons |= button << 0; /* Left button */ in pms_alps_decode_touchpad_packet_v7()
[all …]
H A Dsynaptics.c369 /* Ask about extra buttons to detect up/down. */ in pms_synaptics_probe_extended()
482 { SYN_FLAG_HAS_UP_DOWN_BUTTONS, "Up/down buttons", },
737 SYSCTL_DESCR("Middle button/Z-axis emulation with up/down buttons"), in pms_sysctl_synaptics()
1336 /* keep same buttons down as primary */ in pms_synaptics_parse()
1368 * If the trackpad has external buttons and one of in pms_synaptics_parse()
1369 * those buttons is pressed then the lower bits of in pms_synaptics_parse()
1476 /* extended buttons */ in pms_synaptics_parse()
1513 /* Up/Down buttons. */ in pms_synaptics_parse()
1515 /* Old up/down buttons. */ in pms_synaptics_parse()
1534 * from L/U bit. Emulate 3 buttons b in pms_synaptics_parse()
1673 int buttons, changed; pms_synaptics_passthrough() local
2260 int fingers, palm, buttons, changed; pms_synaptics_process_packet() local
[all...]
/netbsd-src/sys/dev/bluetooth/
H A Dbtms.c403 uint32_t buttons; in btms_input() local
427 buttons = 0; in btms_input()
430 buttons |= BUTTON(i); in btms_input()
433 __func__, dx, dy, dz, dw, buttons)); in btms_input()
434 if (dx != 0 || dy != 0 || dz != 0 || dw != 0 || buttons != sc->sc_buttons) { in btms_input()
435 sc->sc_buttons = buttons; in btms_input()
439 buttons, in btms_input()
/netbsd-src/sys/arch/i386/isa/
H A Dlms.c224 u_int buttons; in lmsintr() local
248 buttons = ((hi & 0x80) ? 0 : 0x1) | in lmsintr()
251 changed = (buttons ^ sc->oldbuttons); in lmsintr()
252 sc->oldbuttons = buttons; in lmsintr()
256 buttons, in lmsintr()
/netbsd-src/sys/dev/hid/
H A Dhidms.c263 uint32_t buttons = 0; in hidms_intr() local
284 buttons |= (1 << HIDMS_BUT(i)); in hidms_intr()
287 buttons != ms->hidms_buttons) { in hidms_intr()
289 dx, dy, dz, dw, buttons)); in hidms_intr()
290 ms->hidms_buttons = buttons; in hidms_intr()
293 wsmouse_input(ms->hidms_wsmousedev, buttons, dx, dy, dz, in hidms_intr()
/netbsd-src/sys/dev/usb/
H A Duts.c370 uint32_t buttons = 0; in uts_intr() local
388 buttons |= 1; in uts_intr()
390 if (dx != 0 || dy != 0 || dz != 0 || buttons != sc->sc_buttons) { in uts_intr()
392 dx, dy, dz, buttons)); in uts_intr()
393 sc->sc_buttons = buttons; in uts_intr()
396 wsmouse_input(sc->sc_wsmousedev, buttons, dx, dy, dz, 0, in uts_intr()
/netbsd-src/sys/arch/evbarm/netwalker/
H A Dnetwalker_btn.c205 uint32_t buttons = 0; in mousebtn_poll() local
214 buttons = (right << 2) | left; in mousebtn_poll()
216 if (sc->sc_buttons != buttons) { in mousebtn_poll()
218 wsmouse_input(sc->sc_wsmousedev, buttons, 0, 0, 0, 0, in mousebtn_poll()
220 sc->sc_buttons = buttons; in mousebtn_poll()
/netbsd-src/sys/dev/tc/
H A Dzsms.c105 u_int buttons; member
251 sc->buttons = data & 02; in zsms_input()
253 sc->buttons |= 04; in zsms_input()
255 sc->buttons |= 01; in zsms_input()
270 sc->buttons, in zsms_input()
/netbsd-src/sys/arch/sandpoint/sandpoint/
H A Dnhpow.c292 uint8_t buttons; in hwintr() local
296 buttons = NHGPIO_READ(sc); in hwintr()
297 if (!(buttons & NHGPIO_POWERBUTTON)) { in hwintr()
301 if (!(buttons & NHGPIO_RESETBUTTON)) { in hwintr()

123456