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:
Oliver Schmidt 2014-01-17 23:45:59 +01:00
parent fb20cf5ee6
commit a24865de72
5 changed files with 29 additions and 14 deletions

View file

@ -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;