li_device_t *device = libinput_device_get_user_data(libinput_device);
pepper_input_event_t event;
- event.id = PEPPER_EVENT_POINTER_MOTION_RELATIVE;
+ event.id = PEPPER_EVENT_POINTER_MOTION;
event.time = libinput_event_pointer_get_time(pointer_event);
event.x = libinput_event_pointer_get_dx(pointer_event);
event.y = libinput_event_pointer_get_dy(pointer_event);
- pepper_object_emit_event((pepper_object_t *)device->base,
- PEPPER_EVENT_POINTER_MOTION_RELATIVE, &event);
+ pepper_object_emit_event((pepper_object_t *)device->base, PEPPER_EVENT_POINTER_MOTION, &event);
}
static void
event.x = libinput_event_pointer_get_absolute_x_transformed(pointer_event, 1);
event.y = libinput_event_pointer_get_absolute_y_transformed(pointer_event, 1);
- pepper_object_emit_event((pepper_object_t *)device->base, PEPPER_EVENT_POINTER_MOTION, &event);
+ pepper_object_emit_event((pepper_object_t *)device->base,
+ PEPPER_EVENT_POINTER_MOTION_ABSOLUTE, &event);
}
static void
PEPPER_EVENT_POINTER_ENTER,
PEPPER_EVENT_POINTER_LEAVE,
PEPPER_EVENT_POINTER_MOTION,
- PEPPER_EVENT_POINTER_MOTION_RELATIVE,
+ PEPPER_EVENT_POINTER_MOTION_ABSOLUTE,
PEPPER_EVENT_POINTER_BUTTON,
PEPPER_EVENT_POINTER_AXIS,
{
xcb_motion_notify_event_t *motion = (xcb_motion_notify_event_t *)xev;
- event.id = PEPPER_EVENT_POINTER_MOTION;
+ event.id = PEPPER_EVENT_POINTER_MOTION_ABSOLUTE;
event.time = motion->time;
event.x = motion->event_x;
event.y = motion->event_y;
pepper_object_emit_event((pepper_object_t *)seat->pointer,
- PEPPER_EVENT_POINTER_MOTION, &event);
+ PEPPER_EVENT_POINTER_MOTION_ABSOLUTE, &event);
}
break;
default :