Lines Matching refs:pointer
116 static void spice_update_buttons(QemuSpicePointer *pointer, in spice_update_buttons() argument
136 if (pointer->last_bmask == button_mask) { in spice_update_buttons()
139 qemu_input_update_buttons(NULL, bmap, pointer->last_bmask, button_mask); in spice_update_buttons()
140 pointer->last_bmask = button_mask; in spice_update_buttons()
146 QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, mouse); in mouse_motion() local
147 spice_update_buttons(pointer, dz, buttons_state); in mouse_motion()
155 QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, mouse); in mouse_buttons() local
156 spice_update_buttons(pointer, 0, buttons_state); in mouse_buttons()
171 QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, tablet); in tablet_set_logical_size() local
179 pointer->width = width; in tablet_set_logical_size()
180 pointer->height = height; in tablet_set_logical_size()
186 QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, tablet); in tablet_position() local
188 spice_update_buttons(pointer, 0, buttons_state); in tablet_position()
189 qemu_input_queue_abs(NULL, INPUT_AXIS_X, x, 0, pointer->width); in tablet_position()
190 qemu_input_queue_abs(NULL, INPUT_AXIS_Y, y, 0, pointer->height); in tablet_position()
198 QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, tablet); in tablet_wheel() local
200 spice_update_buttons(pointer, wheel, buttons_state); in tablet_wheel()
207 QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, tablet); in tablet_buttons() local
209 spice_update_buttons(pointer, 0, buttons_state); in tablet_buttons()
226 QemuSpicePointer *pointer = container_of(notifier, QemuSpicePointer, mouse_mode); in mouse_mode_notifier() local
229 if (pointer->absolute == is_absolute) { in mouse_mode_notifier()
234 qemu_spice.add_interface(&pointer->tablet.base); in mouse_mode_notifier()
236 spice_server_remove_interface(&pointer->tablet.base); in mouse_mode_notifier()
238 pointer->absolute = is_absolute; in mouse_mode_notifier()
244 QemuSpicePointer *pointer; in qemu_spice_input_init() local
251 pointer = g_malloc0(sizeof(*pointer)); in qemu_spice_input_init()
252 pointer->mouse.base.sif = &mouse_interface.base; in qemu_spice_input_init()
253 pointer->tablet.base.sif = &tablet_interface.base; in qemu_spice_input_init()
254 qemu_spice.add_interface(&pointer->mouse.base); in qemu_spice_input_init()
256 pointer->absolute = false; in qemu_spice_input_init()
257 pointer->mouse_mode.notify = mouse_mode_notifier; in qemu_spice_input_init()
258 qemu_add_mouse_mode_change_notifier(&pointer->mouse_mode); in qemu_spice_input_init()
259 mouse_mode_notifier(&pointer->mouse_mode, NULL); in qemu_spice_input_init()