uint32_t serial, struct wl_surface *surface,
wl_fixed_t surface_x, wl_fixed_t surface_y)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
seat->pointer_x_last = surface_x;
seat->pointer_y_last = surface_y;
pointer_handle_motion(void *data, struct wl_pointer *pointer,
uint32_t time, wl_fixed_t surface_x, wl_fixed_t surface_y)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_POINTER_MOTION;
pointer_handle_button(void *data, struct wl_pointer *pointer,
uint32_t serial, uint32_t time, uint32_t button, uint32_t state)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_POINTER_BUTTON;
pointer_handle_axis(void *data, struct wl_pointer *pointer,
uint32_t time, uint32_t axis, wl_fixed_t value)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_POINTER_AXIS;
keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
uint32_t serial, uint32_t time, uint32_t key, uint32_t state)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_KEYBOARD_KEY;
uint32_t serial, uint32_t time, struct wl_surface *surface,
int32_t id, wl_fixed_t x, wl_fixed_t y)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_TOUCH_DOWN;
touch_handle_up(void *data, struct wl_touch *touch,
uint32_t serial, uint32_t time, int32_t id)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_TOUCH_UP;
touch_handle_motion(void *data, struct wl_touch *touch,
uint32_t time, int32_t id, wl_fixed_t x, wl_fixed_t y)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_TOUCH_MOTION;
static void
touch_handle_frame(void *data, struct wl_touch *touch)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_TOUCH_FRAME;
static void
touch_handle_cancel(void *data, struct wl_touch *touch)
{
- wayland_seat_t *seat = (wayland_seat_t *)seat;
+ wayland_seat_t *seat = (wayland_seat_t *)data;
pepper_input_event_t event;
event.type = PEPPER_INPUT_EVENT_TOUCH_CANCEL;