Skip to content
oleegholm edited this page Jan 18, 2012 · 17 revisions

Each module has a Statemachine with several States. Any user interaction is detected by and processed within the Statemachine. Inputs can come from either from KEYS or MOUSE, and are fetched using Case Matches. When an event corresponds to the Case Match in the active State in the Statemachine, the code block within the given state is executed.

Conceptually, the hierarchy is as follows:

  • Statemachine
    • States ('Start, 'End, 'Point, etc.)
      • Case matches (Case MouseDown(), Case _, Case KeyDown etc.)
Clone this wiki locally