示例#1
0
        public void CallKEYPRESS(Button target, int code)
        {
            ButtonKeyPressHandlerList list =
                new ButtonKeyPressHandlerList(keyPress);

            list.ForEach(h => h(target, code));
        }
	public ButtonEventHandlers()
	{
		load = new ButtonEventHandlerList();
		unload = new ButtonEventHandlerList();
		enterFrame = new ButtonEventHandlerList();
		update = new ButtonEventHandlerList();
		render = new ButtonEventHandlerList();
		press = new ButtonEventHandlerList();
		release = new ButtonEventHandlerList();
		rollOver = new ButtonEventHandlerList();
		rollOut = new ButtonEventHandlerList();
		keyPress = new ButtonKeyPressHandlerList();
	}
示例#3
0
 public ButtonEventHandlers()
 {
     load       = new ButtonEventHandlerList();
     unload     = new ButtonEventHandlerList();
     enterFrame = new ButtonEventHandlerList();
     update     = new ButtonEventHandlerList();
     render     = new ButtonEventHandlerList();
     press      = new ButtonEventHandlerList();
     release    = new ButtonEventHandlerList();
     rollOver   = new ButtonEventHandlerList();
     rollOut    = new ButtonEventHandlerList();
     keyPress   = new ButtonKeyPressHandlerList();
 }
	public void CallKEYPRESS(Button target, int code)
	{
		ButtonKeyPressHandlerList list =
			new ButtonKeyPressHandlerList(keyPress);
		list.ForEach(h => h(target, code));
	}