Rev 7428 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7428 | Rev 7434 | ||
---|---|---|---|
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*5 |
5 | #define MEMSIZE 4096*10 |
6 | 6 | ||
Line 7... | Line 7... | ||
7 | #include "../lib/kolibri.h" |
7 | #include "../lib/io.h" |
Line 8... | Line 8... | ||
8 | #include "../lib/fs.h" |
8 | #include "../lib/gui.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(); |
|
10 | proc_info Form; |
20 | break; |
- | 21 | ||
- | 22 | case evKey: |
|
- | 23 | GetKeys(); |
|
- | 24 | if (key_scancode == SCAN_CODE_ESC) ExitProcess(); |
|
- | 25 | break; |
|
- | 26 | ||
11 | 27 | case evReDraw: |
|
Line -... | Line 28... | ||
- | 28 | draw_window(); |
|
- | 29 | break; |
|
- | 30 | } |
|
- | 31 | } |
|
- | 32 |