void _inputService_KeyDown(object sender, KeyStateEventArgs e) { if (e.Key == Key.Up) _y--; if (e.Key == Key.Down) _y++; if (e.Key == Key.Left) _x--; if (e.Key == Key.Right) _x++; _y = Math.Max(0, _y); _y = Math.Min(400, _y); _x = Math.Max(0, _x); _x = Math.Min(700, _x); }
private void OnKeyDown(object sender, KeyStateEventArgs e) { }