EV_switch Function (ROM Call 0xD8)

events.h

void EV_switch (void);

Performs switching of sides.

EV_switch performs side switching. It does nothing if the current "Split Screen" mode is "FULL". Else, it sends CM_UNFOCUS and CM_DEACTIVATE messages, inverts current side, sets the current application to the application on the other side, calls EV_notifySwitchGraph, and finally, sends CM_ACTIVATE and CM_FOCUS messages to the new application.

Note: In AMS 2.xx, this function is extended to allow switching between the current application and the application which last ran before the current application.


Uses: EV_notifySwitchGraph, EV_sendEvent, EV_startApp, EV_appA, EV_appB, EV_appSide, EV_currentApp, OO_firstACB, OO_NextACB
Used by: EV_defaultHandler, push_switch, HomeExecute, EV_quit