/qemu/ui/ |
H A D | input-legacy.c | 158 InputBtnEvent *btn; in legacy_mouse_event() local 163 btn = evt->u.btn.data; in legacy_mouse_event() 164 if (btn->down) { in legacy_mouse_event() 165 s->buttons |= bmap[btn->button]; in legacy_mouse_event() 167 s->buttons &= ~bmap[btn->button]; in legacy_mouse_event() 169 if (btn->down && btn->button == INPUT_BUTTON_WHEEL_UP) { in legacy_mouse_event() 176 if (btn->down && btn->button == INPUT_BUTTON_WHEEL_DOWN) { in legacy_mouse_event() 183 if (btn->down && btn->button == INPUT_BUTTON_WHEEL_RIGHT) { in legacy_mouse_event() 190 if (btn->down && btn->button == INPUT_BUTTON_WHEEL_LEFT) { in legacy_mouse_event()
|
H A D | input.c | 213 InputBtnEvent *btn; in qemu_input_event_trace() local 240 btn = evt->u.btn.data; in qemu_input_event_trace() 241 name = InputButton_str(btn->button); in qemu_input_event_trace() 242 trace_input_event_btn(idx, name, btn->down); in qemu_input_event_trace() 468 void qemu_input_queue_btn(QemuConsole *src, InputButton btn, bool down) in qemu_input_queue_btn() argument 471 .button = btn, in qemu_input_queue_btn() 476 .u.btn.data = &bevt, in qemu_input_queue_btn() 485 InputButton btn; in qemu_input_update_buttons() local 488 for (btn = 0; btn < INPUT_BUTTON__MAX; btn++) { in qemu_input_update_buttons() 489 mask = button_map[btn]; in qemu_input_update_buttons() [all …]
|
H A D | sdl2.c | 560 InputButton btn; in handle_mousewheel() local 567 btn = INPUT_BUTTON_WHEEL_UP; in handle_mousewheel() 569 btn = INPUT_BUTTON_WHEEL_DOWN; in handle_mousewheel() 571 btn = INPUT_BUTTON_WHEEL_RIGHT; in handle_mousewheel() 573 btn = INPUT_BUTTON_WHEEL_LEFT; in handle_mousewheel() 578 qemu_input_queue_btn(scon->dcl.con, btn, true); in handle_mousewheel() 580 qemu_input_queue_btn(scon->dcl.con, btn, false); in handle_mousewheel()
|
H A D | vdagent.c | 254 InputBtnEvent *btn; in vdagent_pointer_event() local 277 btn = evt->u.btn.data; in vdagent_pointer_event() 278 if (btn->down) { in vdagent_pointer_event() 279 vd->mouse_btn |= bmap[btn->button]; in vdagent_pointer_event() 281 vd->mouse_btn &= ~bmap[btn->button]; in vdagent_pointer_event()
|
H A D | gtk.c | 986 InputButton btn; in gd_button_event() local 1001 btn = INPUT_BUTTON_LEFT; in gd_button_event() 1003 btn = INPUT_BUTTON_MIDDLE; in gd_button_event() 1005 btn = INPUT_BUTTON_RIGHT; in gd_button_event() 1007 btn = INPUT_BUTTON_SIDE; in gd_button_event() 1009 btn = INPUT_BUTTON_EXTRA; in gd_button_event() 1018 qemu_input_queue_btn(vc->gfx.dcl.con, btn, in gd_button_event()
|
H A D | trace-events | 91 input_event_btn(int conidx, const char *btn, bool down) "con %d, button %s, down %d"
|
/qemu/replay/ |
H A D | replay-input.c | 23 InputBtnEvent *btn; in replay_save_input_event() local 48 btn = evt->u.btn.data; in replay_save_input_event() 49 replay_put_dword(btn->button); in replay_save_input_event() 50 replay_put_byte(btn->down); in replay_save_input_event() 82 InputBtnEvent btn; in replay_read_input_event() local 108 evt.u.btn.data = &btn; in replay_read_input_event() 109 evt.u.btn.data->button = (InputButton)replay_get_dword(); in replay_read_input_event() 110 evt.u.btn.data->down = replay_get_byte(); in replay_read_input_event()
|
/qemu/hw/input/ |
H A D | virtio-input-hid.c | 90 InputBtnEvent *btn; in virtio_input_handle_event() local 111 btn = evt->u.btn.data; in virtio_input_handle_event() 113 (btn->button == INPUT_BUTTON_WHEEL_UP || in virtio_input_handle_event() 114 btn->button == INPUT_BUTTON_WHEEL_DOWN) && in virtio_input_handle_event() 115 btn->down) { in virtio_input_handle_event() 121 } else if (keymap_button[btn->button]) { in virtio_input_handle_event() 123 event.code = cpu_to_le16(keymap_button[btn->button]); in virtio_input_handle_event() 124 event.value = cpu_to_le32(btn->down ? 1 : 0); in virtio_input_handle_event() 127 if (btn->down) { in virtio_input_handle_event() 129 btn->button, in virtio_input_handle_event() [all …]
|
H A D | hid.c | 123 InputBtnEvent *btn; in hid_pointer_event() local 148 btn = evt->u.btn.data; in hid_pointer_event() 149 if (btn->down) { in hid_pointer_event() 150 e->buttons_state |= bmap[btn->button]; in hid_pointer_event() 151 if (btn->button == INPUT_BUTTON_WHEEL_UP) { in hid_pointer_event() 153 } else if (btn->button == INPUT_BUTTON_WHEEL_DOWN) { in hid_pointer_event() 157 e->buttons_state &= ~bmap[btn->button]; in hid_pointer_event()
|
H A D | ps2.c | 801 InputBtnEvent *btn; in ps2_mouse_event() local 819 btn = evt->u.btn.data; in ps2_mouse_event() 820 if (btn->down) { in ps2_mouse_event() 821 s->mouse_buttons |= bmap[btn->button]; in ps2_mouse_event() 822 if (btn->button == INPUT_BUTTON_WHEEL_UP) { in ps2_mouse_event() 824 } else if (btn->button == INPUT_BUTTON_WHEEL_DOWN) { in ps2_mouse_event() 828 if (btn->button == INPUT_BUTTON_WHEEL_RIGHT) { in ps2_mouse_event() 830 } else if (btn->button == INPUT_BUTTON_WHEEL_LEFT) { in ps2_mouse_event() 834 s->mouse_buttons &= ~bmap[btn->button]; in ps2_mouse_event()
|
/qemu/chardev/ |
H A D | msmouse.c | 129 InputBtnEvent *btn; in msmouse_input_event() local 143 btn = evt->u.btn.data; in msmouse_input_event() 144 mouse->btns[btn->button] = btn->down; in msmouse_input_event() 145 mouse->btnc[btn->button] = true; in msmouse_input_event()
|
H A D | wctablet.c | 153 InputBtnEvent *btn; in wctablet_input_event() local 162 btn = evt->u.btn.data; in wctablet_input_event() 163 tablet->btns[btn->button] = btn->down; in wctablet_input_event()
|
/qemu/hw/display/ |
H A D | xenfb.c | 233 InputBtnEvent *btn; in xenfb_mouse_event() local 241 btn = evt->u.btn.data; in xenfb_mouse_event() 242 switch (btn->button) { in xenfb_mouse_event() 244 xenfb_send_key(xenfb, btn->down, BTN_LEFT); in xenfb_mouse_event() 247 xenfb_send_key(xenfb, btn->down, BTN_LEFT + 1); in xenfb_mouse_event() 250 xenfb_send_key(xenfb, btn->down, BTN_LEFT + 2); in xenfb_mouse_event() 253 if (btn->down) { in xenfb_mouse_event() 258 if (btn->down) { in xenfb_mouse_event()
|
/qemu/include/ui/ |
H A D | input.h | 56 void qemu_input_queue_btn(QemuConsole *src, InputButton btn, bool down);
|
/qemu/qapi/ |
H A D | ui.json | 1175 # @btn: a pointer button input event 1186 'data': [ 'key', 'btn', 'rel', 'abs', 'mtt' ] } 1241 'btn' : 'InputBtnEventWrapper',
|