Scenes Documentation Beta

Protocol Mouse​Down​Handler

public protocol MouseDownHandler : EventHandler 

A type conforming to MouseDownHandler is capable of receiving mouse down events through the onMouseDown method.

Before receiving events, it must be registered with the dispatcher via the registerMouseDownHandler method. Similarly, it should be unregistered before deinitialization via the unregisterMouseDownHandler method available through the dispatcher.

%85 MouseDownHandler MouseDownHandler EventHandler EventHandler MouseDownHandler->EventHandler

Conforms To

EventHandler

An Eventhandler is a type capable of being registered with the Dispatcher to receive events of a certain type.

Requirements

on​Mouse​Down(global​Location:​)

func onMouseDown(globalLocation:Point)