Ejemplo n.º 1
0
 private static Point ToDirection(KeyDownEvent e)
 {
     return
         e.Key == VirtualKey.Left ? Point.West :
         e.Key == VirtualKey.Right ? Point.East :
         e.Key == VirtualKey.Up ? Point.North :
         e.Key == VirtualKey.Down ? Point.South :
         Point.Zero;
 }
 private async void OnResetKeyDown(KeyDownEvent _)
 {
     if (GameClient != null)
         await GameClient.ResetRegionAsync();
 }