Working on loadable mouse drivers

git-svn-id: svn://svn.cc65.org/cc65/trunk@2953 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-03-21 22:12:06 +00:00
parent 3266110927
commit 3bfbaee6a6
10 changed files with 595 additions and 38 deletions

View File

@@ -42,7 +42,13 @@
unsigned char __fastcall__ mouse_load_driver (const char* name)
/* Use static local variables, since the module is not reentrant anyway */
#pragma staticlocals (on);
unsigned char __fastcall__ mouse_load_driver (const struct mouse_callbacks* c,
const char* name)
/* Load a mouse driver and return an error code */
{
static struct mod_ctrl ctrl = {
@@ -69,7 +75,7 @@ unsigned char __fastcall__ mouse_load_driver (const char* name)
if (Res == MLOAD_OK) {
/* Check the driver signature, install the driver */
return mouse_install (ctrl.module);
return mouse_install (c, ctrl.module);
}
}