screen_get_mtouch_event()

Retrieve mtouch 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

The indicator to specify which coordinates to use; 1 indicates to 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.