Event.GetTypeForControl Manual     Reference     Scripting  
Scripting > Runtime Classes > Event
Event.GetTypeForControl

function GetTypeForControl (controlID : int) : EventType

Parameters

NameDescription
controlID the ID of the control you are querying from. Get it from GUIUtilty.GetControlID () See Also: EventType for the list of possible values.

Description

Get a filtered event type for a give control ID.

This function is used to implement mouse locking and keyboard focus.