void _Update_Input_Selector() { // go through all selectors and check all buttons against button_up input ButtonUpEvent button_up = mListener_ButtonUpEvent.GetMaxOne(); int selected_index = -1; if (button_up != null) { var s = mSelectors.GetEnumerator(); while (s.MoveNext()) { if ((selected_index = s.Current.Value.CheckSelections(button_up.mID)) > -1) { SelectorSelectionEvent e = new SelectorSelectionEvent(s.Current.Value.GetID(), selected_index); mBroadcaster_SelectorSelectionEvent.Post(e); } } } }
public virtual void OnButtonUp(InputEventArgs e) { ButtonUpEvent?.Invoke(this, e); }