first debug version of ncpu
[fceu.git] / input.h
CommitLineData
c62d2810 1typedef struct {
2 uint8 FP_FASTAPASS(1) (*Read)(int w);
3 void FP_FASTAPASS(1) (*Write)(uint8 v);
4 void FP_FASTAPASS(1) (*Strobe)(int w);
5 void FP_FASTAPASS(3) (*Update)(int w, void *data, int arg);
6 void FP_FASTAPASS(3) (*SLHook)(int w, uint8 *buf, int line);
7 void FP_FASTAPASS(3) (*Draw)(int w, uint8 *buf, int arg);
8} INPUTC;
9
10typedef struct {
11 uint8 FP_FASTAPASS(2) (*Read)(int w, uint8 ret);
12 void FP_FASTAPASS(1) (*Write)(uint8 v);
13 void (*Strobe)(void);
14 void FP_FASTAPASS(2) (*Update)(void *data, int arg);
15 void FP_FASTAPASS(2) (*SLHook)(uint8 *buf, int line);
16 void FP_FASTAPASS(2) (*Draw)(uint8 *buf, int arg);
17} INPUTCFC;
18
19void DrawInput(uint8 *buf);
20void UpdateInput(void);
21void InitializeInput(void);
22extern void (*PStrobe[2])(void);
23extern void (*InputScanlineHook)(uint8 *buf, int line);