Displaying 2 results from an estimated 2 matches for "kbd_mouse_is_absolute".
2008 Mar 05
0
[PATCH] ioemu: fix SDL mouse events processing
...last_vm_running = vm_running;
@@ -368,6 +369,7 @@
vga_hw_update();
+ state = SDL_GetMouseState(NULL, NULL);
while (SDL_PollEvent(ev)) {
switch (ev->type) {
case SDL_VIDEOEXPOSE:
@@ -475,41 +477,38 @@
case SDL_MOUSEMOTION:
if (gui_grab || kbd_mouse_is_absolute() ||
absolute_enabled) {
- int dx, dy, state;
- state = SDL_GetRelativeMouseState(&dx, &dy);
- sdl_send_mouse_event(dx, dy, 0, state);
+ int dx, dy;
+ SDL_GetRelativeMouseState(&dx, &dy);
+...
2009 Mar 02
0
[PATCH 5 of 13] exploiting the new interface in vnc.c
...clock(rt_clock);
- if (vs->width != DP2X(vs, DIRTY_PIXEL_BITS))
+ if (vs->serverds.width != DP2X(vs, DIRTY_PIXEL_BITS))
width_mask = (1ULL << X2DP_UP(vs, ds_get_width(vs->ds))) - 1;
else
width_mask = ~(0ULL);
@@ -1541,81 +1551,79 @@
check_pointer_type_change(vs, kbd_mouse_is_absolute());
}
+static void set_pixel_conversion(VncState *vs)
+{
+ if ((vs->clientds.flags & QEMU_BIG_ENDIAN_FLAG) ==
+ (vs->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG) &&
+ !memcmp(&(vs->clientds.pf), &(vs->ds->surface->pf), sizeof(PixelF...