Navigation.eventParseMouseButtonEvent

Retrieve the details of either a #GstNavigation mouse button press event or a mouse button release event. Determine which type the event is using gstvideo.navigation.Navigation.eventGetType to retrieve the #GstNavigationEventType.

interface Navigation
static
bool
eventParseMouseButtonEvent
(,
out int button
,
out double x
,
out double y
)

Parameters

event gst.event.Event

A #GstEvent to inspect.

button int

Pointer to a gint that will receive the button number associated with the event.

x double

Pointer to a gdouble to receive the x coordinate of the mouse button event.

y double

Pointer to a gdouble to receive the y coordinate of the mouse button event.

Return Value

Type: bool

TRUE if the button number and both coordinates could be extracted, otherwise FALSE.