Prev | Current Page 1011 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

At present, joystick support is not available in NME, though this is planned for the
near future.
Capturing Events
Unlike GUI programming, events are not fired, and they don ??™ t use callbacks. Instead, the events object
of the underlying SDL library needs to be requested in order to bring it up to date with the running
application, and then you can query it bit by bit. Requesting events is merely a way to clear and fill an
event stack with any event objects since the event object was last requested. Once the request is
complete, you can then query the stack for the events you are most interested in, and then act upon them
in your application. This is probably akin to how a GUI events system works, only in an as requested
fashion, rather than an enforced one.
To request the events to be gathered, you make a call to the events method of an instantiated Manager
object. Once performed, you can then query the events stack by type using the plethora of event - related
methods, also within a Manager instance.


Pages:
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023