Prev | Current Page 699 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Of course, if the control is
not associated with a context, no event is fired even if handlers are already in place.
The MouseEvent and the KeyEvent are typedef and contain the field definitions described in
Tables 13 - 3 and 13 - 4 .
Table 13 - 3
MouseEvent Fields Description
target :ui.core.Element The object that has triggered the mouse event.
buttonDown :Bool States if the mouse left button is down or not.
ctrlKey :Bool States if the Control key button on the keyboard was pressed at the
time that the mouse action has been performed.
shiftKey :Bool Same as before but for the Shift key.
local: { x:Float, y:
Float }
Returns the coordinates of the pointer relatives to the target object.
view: { x:Float, y:Float } Returns the coordinates of the pointer relatives to the entire view.
Table 13 - 4
KeyEvent Fields Description
target : ui.core
.Element
The object associated to the Dispatcher that has fired the event.
charCode : Int The numeric character code for the pressed keyboard button.
keyCode : Int The numeric key code for the pressed keyboard button.


Pages:
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711