Add somewhat more support to use different mouse drivers.
- The default mouse driver is now always named 'contiki.mou'. - Alternative mouse drivers are present in the disk images. - Users can select their mouse driver by renaming the files.
This commit is contained in:
parent
fb20cf5ee6
commit
a24865de72
5 changed files with 29 additions and 14 deletions
|
@ -51,7 +51,7 @@ ctk_mouse_init(void)
|
|||
{
|
||||
struct mod_ctrl module_control = {cfs_read};
|
||||
|
||||
module_control.callerdata = cfs_open(mouse_stddrv, CFS_READ);
|
||||
module_control.callerdata = cfs_open("contiki.mou", CFS_READ);
|
||||
okay = module_control.callerdata >= 0;
|
||||
if(okay) {
|
||||
okay = mod_load(&module_control) == MLOAD_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue