/// <summary> /// Mouse movement event arguments passed to the active popup or screen /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public virtual void HandleMouseMovingEvent(object sender, MouseMotionEventArgs e) { if (IsActivePopupAvailable) { ActivePopup.HandleMouseMovingEvent(sender, e); } else if (IsActiveScreenAvailable) { ActiveScreen.HandleMouseMovingEvent(sender, e); } }
/// <summary> /// Text inputting (with IME support) event arguments passed to the active popup or screen /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public virtual void HandleTextInputtingEvent(object sender, TextInputEventArgs e) { if (IsActivePopupAvailable) { ActivePopup.HandleTextInputtingEvent(sender, e); } else if (IsActiveScreenAvailable) { ActiveScreen.HandleTextInputtingEvent(sender, e); } }
public void PassKeyStatesToActiveScreen(IEnumerable <KeyInformation> keysPressed, IEnumerable <KeyInformation> keysReleased) { if (IsActivePopupAvailable) { ActivePopup.HandleKeyStates(keysPressed, keysReleased); } else if (IsActiveScreenAvailable) { ActiveScreen.HandleKeyStates(keysPressed, keysReleased); } }
/// <summary> /// Key released event arguments passsed to the active popup or screen /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public virtual void HandleKeyReleasedEvent(object sender, KeyboardEventArgs e) { if (IsActivePopupAvailable) { ActivePopup.HandleKeyReleasedEvent(sender, e); } else if (IsActiveScreenAvailable) { ActiveScreen.HandleKeyReleasedEvent(sender, e); } }
public void PassMouseButtonPressedEventToActiveScreen(object sender, MouseButtonEventArgs e) { if (IsActivePopupAvailable) { ActivePopup.HandleMouseButtonPressedEvent(sender, e); } else if (IsActiveScreenAvailable) { ActiveScreen.HandleMouseButtonPressedEvent(sender, e); } }