InstancingDemo2D.InstancingDemo.InputDevice_KeyDown C# (CSharp) Method

InputDevice_KeyDown() private method

private InputDevice_KeyDown ( object sender, InputDevice e ) : void
sender object
e Fusion.Drivers.Input.InputDevice
return void
		void InputDevice_KeyDown ( object sender, InputDevice.KeyEventArgs e )
		{
			if (e.Key == Keys.F2) {
				Parameters.VSyncInterval = (Parameters.VSyncInterval == 0) ? 1 : 0;
			}

			if (e.Key == Keys.F5) {
				Reload();
			}

			if (e.Key == Keys.F12) {
				GraphicsDevice.Screenshot();
			}

			if (e.Key == Keys.Escape) {
				Exit();
			}
		}