Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the previous examples we have written programs without functions. These programs were not interactive and do not include animations. So how can you extend a program so that, for example, the keyboard is used as an input? The answer is to use program events, which are recorded and forwarded by the program. Here is a short list of some such events:

  • program start
  • Output to refresh of the windowwindwo
  • keyboard input
  • mouse input

...