next next up down toc toc mail

10.22.  Events und FSM

 1        ...                                   
 2                                                                              
 3      %event handling:                                                        
 4                                                                              
 5      draw_w_1:       
 6        <0>   KeyPress        nop             state = 1
 7      | <0>   ButtonPress     nop             state = 2
 8      | <1>   ButtonPress     draw_circle     state = 0
 9      | <2>   ButtonPress     draw_line_v     state = 0
10              ;                                                               
11      
12      draw_w_2:
13        <0>   KeyPress        state = 1
14      | <0>   ButtonPress     nop             state = 2
15      | <1>   ButtonPress     draw_rectangle  state = 0
16      | <2>   ButtonPress     draw_line_h     state = 0
17              ;                                                               


back next up down toc toc mail


Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1998).

Last modified: 27/July/98 (12:14)