Ejemplo n.º 1
0
        public Game1()
        {
            Instance              = this;
            _graphics             = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            IsMouseVisible        = true;

            _pxt = new Pxt();
        }
Ejemplo n.º 2
0
 public void Send()
 {
     foreach (var kv in keys)
     {
         if (kv.Value != PxtKeyState.IDLE)
         {
             Pxt.VmRaiseEvent((int)kv.Value, (int)kv.Key + 7 * playerId);
             Pxt.VmRaiseEvent((int)kv.Value, 0); // any
         }
     }
 }