Example #1
0
 private void KeyMouseManager_SomeKeyPressd(KeyCode keyCode)
 {
     if (keyCode == KeyMapperManager.Instance.GetKey(GameKeyCode.FullScreen))
     {
         SetFullScreen();
     }
     else if (keyCode == KeyMapperManager.Instance.GetKey(GameKeyCode.Screenshot))
     {
         renderWindow.WriteContentsToTimestampedFile("ScreenShot_", ".jpg");
         outputMgr.DisplayMessage(string.Format(locateMgr.GetLocalizedString(LocateFileType.GameString, "str_screenshots_saved_to_{0}"), Environment.CurrentDirectory));
     }
     else if (keyCode == KeyMapperManager.Instance.GetKey(GameKeyCode.ShowOgreLogo))
     {
         if (trayMgr.isLogoVisible())
         {
             trayMgr.hideFrameStats();
             trayMgr.hideLogo();
         }
         else
         {
             trayMgr.showFrameStats(TrayLocation.TL_BOTTOMLEFT);
             trayMgr.showLogo(TrayLocation.TL_BOTTOMRIGHT);
         }
     }
 }
        public bool keyPressed(KeyEvent keyEventRef)
        {
            if (m_pKeyboard.IsKeyDown(MOIS.KeyCode.KC_V))
            {
                m_pRenderWnd.WriteContentsToTimestampedFile("AMOF_Screenshot_", ".jpg");
                return(true);
            }

            if (m_pKeyboard.IsKeyDown(MOIS.KeyCode.KC_O))
            {
                if (m_pTrayMgr.isLogoVisible())
                {
                    m_pTrayMgr.hideFrameStats();
                    m_pTrayMgr.hideLogo();
                }
                else
                {
                    m_pTrayMgr.showFrameStats(TrayLocation.TL_BOTTOMLEFT);
                    m_pTrayMgr.showLogo(TrayLocation.TL_BOTTOMRIGHT);
                }
            }

            return(true);
        }
Example #3
0
        public bool keyPressed(KeyEvent keyEventRef)
        {
            if (keyboard.IsKeyDown(KeyCode.KC_V))
            {
                renderWindow.WriteContentsToTimestampedFile("AMGE_ScreenShot_", ".jpg");
                outputMgr.DisplayMessage(string.Format(locateMgr.GetLocalizedString(LocateFileType.GameString, "str_screenshots_saved_to_{0}"), Environment.CurrentDirectory));
                return(true);
            }
            else if (keyboard.IsKeyDown(KeyCode.KC_O))
            {
                if (trayMgr.isLogoVisible())
                {
                    trayMgr.hideFrameStats();
                    trayMgr.hideLogo();
                }
                else
                {
                    trayMgr.showFrameStats(TrayLocation.TL_BOTTOMLEFT);
                    trayMgr.showLogo(TrayLocation.TL_BOTTOMRIGHT);
                }
            }

            return(true);
        }