-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathinput.h
31 lines (26 loc) · 783 Bytes
/
input.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Digger Remastered
Copyright (c) Andrew Jenner 1998-2004 */
void detectjoy(void);
bool teststart(void);
void readdirect(int n);
int16_t getdirect(int n);
void checkkeyb(void);
void flushkeybuf(void);
void findkey(int kn);
void clearfire(int n);
extern bool firepflag,fire2pflag,escape;
extern int8_t keypressed;
extern int16_t akeypressed;
#define NKEYS 19
#define DKEY_CHT 10 /* Cheat */
#define DKEY_SUP 11 /* Increase speed */
#define DKEY_SDN 12 /* Decrease speed */
#define DKEY_MTG 13 /* Toggle music */
#define DKEY_STG 14 /* Toggle sound */
#define DKEY_EXT 15 /* Exit */
#define DKEY_PUS 16 /* Pause */
#define DKEY_MCH 17 /* Mode change */
#define DKEY_SDR 18 /* Save DRF */
extern int keycodes[NKEYS][5];
extern bool krdf[NKEYS];
extern bool pausef,mode_change;