screen_get_mtouch_event()

Retrieve touch event data from a screen event.

Synopsis:

#include <input/screen_helpers.h>
 
static int screen_get_mtouch_event(screen_event_t screen_event, mtouch_event_t *mtouch_event, int screen_abs)

Arguments:

screen_event

The screen event to retrieve data from.

mtouch_event

The mtouch_event to populate.

screen_abs

If 1, use screen coordinates otherwise use source viewport.

Library:

libinputevents

Description:

The function screen_get_mtouch_event() populates the mtouch_event with data fetched from the screen event.

Returns:

0 on success, -1 on failure.