public static void HandleInput(MyGuiInput input) { if (input.IsAnyAltPress()) { for (int i = 0; i <= 9; i++) { var key = (Keys)((int)Keys.NumPad0 + i); if (input.IsNewKeyPress(key)) { PressedKey(key, input.IsAnyCtrlKeyPressed()); } } if (input.IsNewKeyPress(Keys.Add)) { PressedKey(Keys.Add); } if (input.IsNewKeyPress(Keys.Subtract)) { PressedKey(Keys.Subtract); } if (input.IsNewKeyPress(Keys.Enter)) { PressedKey(Keys.Enter); } if (input.IsNewKeyPress(Keys.Delete)) { PressedKey(Keys.Delete); } if (input.IsKeyPress(Keys.PageDown)) { MyRenderProfiler.PreviousFrame(); } if (input.IsKeyPress(Keys.PageUp)) { MyRenderProfiler.NextFrame(); } if (input.IsKeyPress(Keys.Multiply)) { PressedKey(Keys.Multiply); } if (input.IsKeyPress(Keys.Divide)) { PressedKey(Keys.Divide); } if ((((input.IsKeyPress(Keys.PageDown)) || (input.IsKeyPress(Keys.PageUp))) && input.IsAnyCtrlKeyPressed()) || (input.IsKeyPress(Keys.Multiply) || input.IsKeyPress(Keys.Divide)) ) { System.Threading.Thread.Sleep(100); } } }