Scenes Documentation Beta

Protocol Key​UpHandler

public protocol KeyUpHandler : EventHandler 

A type conforming to KeyUpHandler is capable of receiving key up events through the onKeyUp method.

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

%153 KeyUpHandler KeyUpHandler EventHandler EventHandler KeyUpHandler->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​Key​Up(key:​code:​ctrl​Key:​shift​Key:​alt​Key:​meta​Key:​)

func onKeyUp(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)