Added Microsoft Intellimouse emulation
This commit is contained in:
parent
09dbd1dd65
commit
7f7c11edb2
11 changed files with 92 additions and 36 deletions
|
|
@ -1,6 +1,6 @@
|
|||
void mouse_emu_init();
|
||||
void mouse_emu_close();
|
||||
void mouse_poll(int x, int y, int b);
|
||||
void mouse_poll(int x, int y, int z, int b);
|
||||
|
||||
char *mouse_get_name(int mouse);
|
||||
int mouse_get_type(int mouse);
|
||||
|
|
@ -10,12 +10,14 @@ int mouse_get_type(int mouse);
|
|||
#define MOUSE_TYPE_AMSTRAD 2
|
||||
#define MOUSE_TYPE_OLIM24 3
|
||||
|
||||
#define MOUSE_TYPE_3BUTTON (1 << 31)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[80];
|
||||
void *(*init)();
|
||||
void (*close)(void *p);
|
||||
uint8_t (*poll)(int x, int y, int b, void *p);
|
||||
uint8_t (*poll)(int x, int y, int z, int b, void *p);
|
||||
int type;
|
||||
} mouse_t;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue