event_parse_mouse_button_event


Description:

public static bool event_parse_mouse_button_event (Event event, out int button, out double x, out double y)

Retrieve the details of either a Navigation mouse button press event or a mouse button release event.

Determine which type the event is using event_get_type to retrieve the NavigationEventType.

Parameters:

event

A Event to inspect.

button

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

x

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

y

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

Returns:

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