Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions manymouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static const ManyMouseDriver **mice_drivers[] =


static const ManyMouseDriver *driver = NULL;
static int many_mouse_counter=0;

int ManyMouse_Init(void)
{
Expand Down Expand Up @@ -68,10 +69,18 @@ int ManyMouse_Init(void)
} /* if */
} /* for */

if(retval>0)many_mouse_counter=retval;
else many_mouse_counter=0;

return retval;
} /* ManyMouse_Init */


int ManyMouse_DeviceNumber(void)
{
return many_mouse_counter;
}

void ManyMouse_Quit(void)
{
if (driver != NULL)
Expand Down
1 change: 1 addition & 0 deletions manymouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ typedef struct


int ManyMouse_Init(void);
int ManyMouse_DeviceNumber(void);
const char *ManyMouse_DriverName(void);
void ManyMouse_Quit(void);
const char *ManyMouse_DeviceName(unsigned int index);
Expand Down