Last change
on this file was
3423,
checked in by Sam Hocevar, 12 years ago
|
- Toying around with the old ttyvaders version.
|
-
Property svn:keywords set to
Id
|
File size:
939 bytes
|
Line | |
---|
1 | /* |
---|
2 | * ttyvaders Textmode shoot'em up |
---|
3 | * Copyright (c) 2002 Sam Hocevar <sam@zoy.org> |
---|
4 | * All Rights Reserved |
---|
5 | * |
---|
6 | * $Id: ceo.c 3423 2009-04-28 16:55:01Z sam $ |
---|
7 | * |
---|
8 | * This program is free software. It comes without any warranty, to |
---|
9 | * the extent permitted by applicable law. You can redistribute it |
---|
10 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
11 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
12 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
13 | */ |
---|
14 | |
---|
15 | #include "config.h" |
---|
16 | |
---|
17 | #include <stdio.h> |
---|
18 | //#include <unistd.h> |
---|
19 | |
---|
20 | #include "common.h" |
---|
21 | |
---|
22 | void ceo_alert(game *g) |
---|
23 | { |
---|
24 | int end = 0; |
---|
25 | |
---|
26 | while(!end) |
---|
27 | { |
---|
28 | caca_event_t ev; |
---|
29 | |
---|
30 | caca_clear_canvas(g->cv); |
---|
31 | |
---|
32 | if(caca_get_event(g->dp, CACA_EVENT_KEY_PRESS, &ev, 0) |
---|
33 | && ev.data.key.ch == '\t') |
---|
34 | { |
---|
35 | end = 1; |
---|
36 | } |
---|
37 | |
---|
38 | fprintf(stderr, "foo\n"); |
---|
39 | |
---|
40 | caca_refresh_display(g->dp); |
---|
41 | |
---|
42 | //usleep(40000); |
---|
43 | } |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.