home *** CD-ROM | disk | FTP | other *** search
- /* Cell Proj 1.0 */
-
- #include "Cell_Proto.h"
- #include "Cell_Definitions.h"
- #include "Cell_Variables.h"
-
- HandleEvent()
- {
- char theChar;
-
- switch ( gTheEvent.what )
- {
- case nullEvent:
- if ( FrontWindow() == gCellWindow )
- {
- DoCellularAutomata();
- }
- case mouseDown:
- HandleMouseDown();
- break;
- case keyDown:
- case autoKey:
- theChar = gTheEvent.message & charCodeMask;
- if (( gTheEvent.modifiers & cmdKey ) != 0 )
- HandleMenuChoice( MenuKey( theChar ));
- break;
- case updateEvt:
- HandleUpdateEvt();
- break;
- case activateEvt:
- HandleActivateEvt();
- break;
- }
- }