public Game1() { Instance = this; _graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; _pxt = new Pxt(); }
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 } } }