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(); }