Beispiel #1
0
        protected override void OnDeactivated(object sender, EventArgs args)
        {
            if (MainView != null)
            {
                MainView.ViewDeactivated();
            }

            TouchPad.Instance.AppDeactivated();

            AppDeactivated?.Invoke();
        }
Beispiel #2
0
        /// <summary>
        /// Handles application activated/deactivated event.
        /// </summary>
        protected virtual void HandleActivateApp(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        {
            var isActivated = Convert.ToBoolean(wParam.ToInt32());

            if (isActivated)
            {
                AppActivated?.Invoke(_window, EventArgs.Empty);
            }
            else
            {
                AppDeactivated?.Invoke(_window, EventArgs.Empty);
            }
        }
Beispiel #3
0
 private void GameForm_ActivateActions(SDL.SDL_WindowEvent e)
 {
     AppDeactivated?.Invoke(this, EventArgs.Empty);
 }
Beispiel #4
0
 /// <summary>
 /// Raises the App Deactivated event
 /// </summary>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void OnAppDeactivated(EventArgs e)
 {
     AppDeactivated?.Invoke(this, e);
 }