private InputDevice_KeyDown ( object sender, Fusion.Input.InputDevice e ) : void | ||
sender | object | |
e | Fusion.Input.InputDevice | |
return | void |
void InputDevice_KeyDown ( object sender, InputDevice.KeyEventArgs e )
{
if (e.Key == Keys.F2) {
Parameters.ToggleVSync();
}
if (e.Key == Keys.F5) {
Reload();
}
if (e.Key == Keys.F12) {
GraphicsDevice.Screenshot();
}
if (e.Key == Keys.Escape) {
Exit();
}
}