Exemplo n.º 1
0
 public LevelController(EditorController editorController, LevelView levelView)
 {
     _editorController = editorController;
     _levelView        = levelView;
     _levelView.setController(this);
     _keysPressed      = new bool[255];
     _keysChecked      = new bool[255];
     Application.Idle += new EventHandler(update);
     //Application.Idle += new EventHandler(draw);
     _levelView.FindForm().KeyDown += new System.Windows.Forms.KeyEventHandler(Parent_KeyDown);
     _levelView.FindForm().KeyUp   += new System.Windows.Forms.KeyEventHandler(Parent_KeyUp);
 }