Mouse type now configurable
This commit is contained in:
parent
d9fe1a30d7
commit
09dbd1dd65
21 changed files with 494 additions and 238 deletions
23
src/mouse.h
23
src/mouse.h
|
|
@ -1,5 +1,22 @@
|
|||
extern void (*mouse_poll)(int x, int y, int b);
|
||||
void mouse_emu_init();
|
||||
void mouse_emu_close();
|
||||
void mouse_poll(int x, int y, int b);
|
||||
|
||||
extern int mousepos;
|
||||
extern int mousedelay;
|
||||
char *mouse_get_name(int mouse);
|
||||
int mouse_get_type(int mouse);
|
||||
|
||||
#define MOUSE_TYPE_SERIAL 0
|
||||
#define MOUSE_TYPE_PS2 1
|
||||
#define MOUSE_TYPE_AMSTRAD 2
|
||||
#define MOUSE_TYPE_OLIM24 3
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[80];
|
||||
void *(*init)();
|
||||
void (*close)(void *p);
|
||||
uint8_t (*poll)(int x, int y, int b, void *p);
|
||||
int type;
|
||||
} mouse_t;
|
||||
|
||||
extern int mouse_type;
|
||||
|
|
|
|||
Loading…
Reference in a new issue