Just some notes and SPEC stuff.
[pineappletracker.git] / gui.h
blob5f7088e460214ca428db9097c6db0a597015fc3c
1 #define SETLO(v,x) v = ((v) & 0xf0) | (x)
2 #define SETHI(v,x) v = ((v) & 0x0f) | ((x) << 4)
3 #define CTRL(c) ((c) & 037)
4 #define KEY_ESCAPE 27
5 #define KEY_TAB 9 // this also happens to be ^i...
6 #define ENTER 13
8 #ifndef WINDOWS
9 #define BACKSPACE 0x07
10 #endif
12 int currmode;
13 char currcmd;
14 int instrx, instry, instroffs;
15 int octave;
16 int songx, songy, songoffs;
17 int trackx, tracky, trackoffs;
18 int currtrack, currinstr;
19 int currtab;
20 int saved;
21 int disptick;
22 int step;
24 char cmdstr[500];
25 char filename[1024];
26 char *validcmds;
27 char *keymap[2];
29 void initsonglines(void);
30 void inittracks(void);
31 void initinstrs(void);
33 void drawsonged(int x, int y, int height);
34 void drawtracked(int x, int y, int height);
35 void drawinstred(int x, int y, int height);
36 void drawgui(void);
38 int freqkey(int c);
39 int hexinc(int x);
40 int hexdec(int x);
41 void insertc (int c);
42 char nextchar(void);
43 void setdisplay(char *str);