button_press_event


Description:

public virtual signal bool button_press_event (CanvasItem target, EventButton event)

Emitted when a mouse button is pressed in an item.

Parameters:

event

the event data. The x & y fields contain the mouse position in the item's coordinate space. The x_root & y_root fields contain the same coordinates converted to the canvas coordinate space.

target_item

the target of the event.

Returns:

true to stop the signal emission, or false to let it continue.