public void initMouseEvent(string typeArg, bool canBubbleArg, bool cancelableArg, AbstractView viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, short buttonArg, EventTarget relatedTargetArg) { base.initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); screenX = screenXArg; screenY = screenYArg; clientX = clientXArg; clientY = clientYArg; ctrlKey = ctrlKeyArg; shiftKey = shiftKeyArg; altKey = altKeyArg; metaKey = metaKeyArg; button = buttonArg; relatedTarget = relatedTargetArg; }
public void initFocusEvent(string typeArg, bool canBubbleArg, bool cancelableArg, AbstractView viewArg, long detailArg, EventTarget relatedTargetArg) { base.initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg); relatedTarget = relatedTargetArg; }
public void initWheelEvent(string typeArg, bool canBubbleArg, bool cancelableArg, AbstractView viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, short buttonArg, EventTarget relatedTargetArg, string modifiersListArg, double deltaXArg, double deltaYArg, double deltaZArg, long deltaModeArg) { modifiersListArg = modifiersListArg.ToLower(); bool ctrlKeyArg = modifiersListArg.Contains("control"); bool altKeyArg = modifiersListArg.Contains("alt"); bool shiftKeyArg = modifiersListArg.Contains("shift"); bool metaKeyArg = modifiersListArg.Contains("meta"); if (modifiersListArg.Contains("altgraph")) { ctrlKeyArg = altKeyArg = true; } base.initMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); deltaX = deltaXArg; deltaY = deltaYArg; deltaZ = deltaZArg; deltaMode = deltaModeArg; }