Rev 6771 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6771 | Rev 7428 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * Template C-- program. |
2 | * Template C-- program. |
3 | */ |
3 | */ |
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | #define MEMSIZE 4096*10 |
5 | #define MEMSIZE 4096*5 |
6 | 6 | ||
Line 7... | Line 7... | ||
7 | #include "../lib/io.h" |
7 | #include "../lib/kolibri.h" |
Line 8... | Line 8... | ||
8 | #include "../lib/gui.h" |
8 | #include "../lib/fs.h" |
9 | 9 | ||
10 | proc_info Form; |
- | |
11 | - | ||
12 | void main() |
- | |
13 | { |
- | |
14 | word btn; |
- | |
15 | loop() switch(WaitEvent()) |
- | |
16 | { |
- | |
17 | case evButton: |
- | |
18 | btn = GetButtonID(); |
- | |
19 | if (btn == 1) ExitProcess(); |
- | |
20 | break; |
10 | proc_info Form; |
21 | - | ||
22 | case evKey: |
- | |
23 | GetKeys(); |
- | |
24 | if (key_scancode == SCAN_CODE_ESC) ExitProcess(); |
- | |
25 | break; |
- | |
26 | - | ||
27 | case evReDraw: |
11 | |
Line 28... | Line -... | ||
28 | draw_window(); |
- | |
29 | break; |
- | |
30 | } |
- | |
31 | } |
- | |
32 | - |