task.</P>

<PRE><CODE>x = CurrentEvents();</CODE></PRE>

<H3>Event(events)Function - RCX2, Scout, Spy</H3>

<P>Manually triggers the specified events. This can be useful in testing event handling of the program, or in other cases simulating an event based on other criteria. Note that the specification of the events themselves is slightly different between brick types. RCX2, Swan, and Spybotics use the EVENT_MASK macro to compute an event mask, while Scout has predefined masks.</P>

<PRE><CODE>Event(