예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 /// <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);
     }
 }
예제 #3
0
 public void PassKeyStatesToActiveScreen(IEnumerable <KeyInformation> keysPressed, IEnumerable <KeyInformation> keysReleased)
 {
     if (IsActivePopupAvailable)
     {
         ActivePopup.HandleKeyStates(keysPressed, keysReleased);
     }
     else if (IsActiveScreenAvailable)
     {
         ActiveScreen.HandleKeyStates(keysPressed, keysReleased);
     }
 }
예제 #4
0
 /// <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);
     }
 }
예제 #5
0
 public void PassMouseButtonPressedEventToActiveScreen(object sender, MouseButtonEventArgs e)
 {
     if (IsActivePopupAvailable)
     {
         ActivePopup.HandleMouseButtonPressedEvent(sender, e);
     }
     else if (IsActiveScreenAvailable)
     {
         ActiveScreen.HandleMouseButtonPressedEvent(sender, e);
     }
 }