public void DispatchKeys() { KeyData key = keyProvider.GetKeyData(); while (null != key) { keyCollection.Dispatch(key); key = keyProvider.GetKeyData(); } }
public void DispatchPointers() { KeyData pointKey = pointerProvider.GetKeyData(); while (null != pointKey) { pointerCollection.Dispatch(pointKey); pointKey = pointerProvider.GetKeyData(); } }
protected override void SetRaycastTargetData(KeyData data, RayCastTarget target) { var pointerData = data as PointerData; if (null == pointerData) { return; } pointerData.Data = target.Data; pointerData.IdList = target.IdList; }
public virtual void Dispatch(KeyData keyData) { Rebuild(); List <KeyPointAction> actions; if (dispatchDict.TryGetValue(keyData, out actions)) { foreach (var action in actions) { DoDispatch(action, keyData); } } }
public void InsertKey(KeyData key) { keyProvider.Insert(key); }
protected virtual void SetRaycastTargetData(KeyData data, RayCastTarget target) { }
public void Insert(KeyData key) { insertQueue.Enqueue(key); }