projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding the previous gfx.h file, will re-write the code
[dosdemo]
/
src
/
screen.h
diff --git
a/src/screen.h
b/src/screen.h
index
9a449e8
..
c2e4974
100644
(file)
--- a/
src/screen.h
+++ b/
src/screen.h
@@
-11,6
+11,8
@@
struct screen {
void (*stop)(long trans_time);
void (*draw)(void);
void (*stop)(long trans_time);
void (*draw)(void);
+
+ void (*keypress)(int key);
};
int scr_init(void);
};
int scr_init(void);
@@
-18,8
+20,11
@@
void scr_shutdown(void);
void scr_update(void);
void scr_draw(void);
void scr_update(void);
void scr_draw(void);
+void scr_keypress(int key);
struct screen *scr_lookup(const char *name);
struct screen *scr_lookup(const char *name);
+struct screen *scr_screen(int idx);
+int scr_num_screens(void);
int scr_change(struct screen *s, long trans_time);
#endif /* SCREEN_H_ */
int scr_change(struct screen *s, long trans_time);
#endif /* SCREEN_H_ */