2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/symbolsets.h>
8 #include <hidd/mouse.h>
16 #define HiddAttrBase (LIBBASE->msd.hiddAttrBase)
17 #define HWBase (LIBBASE->msd.hwMethodBase)
18 #define OOPBase (LIBBASE->msd.oopBase)
20 static int init_mouse(struct mousebase
*LIBBASE
)
22 /* FIXME: implement proper detection. See TODO notice in mouseclass.c */
23 struct TagItem tags
[] =
25 {aHidd_Name
, (IPTR
)"SerMouse" },
26 {aHidd_HardwareName
, (IPTR
)"Serial mouse"},
29 OOP_Object
*ms
= OOP_NewObject(NULL
, CLID_HW_Mouse
, NULL
);
34 if (!HW_AddDriver(ms
, LIBBASE
->msd
.mouseclass
, tags
))
37 LIBBASE
->library
.lib_OpenCnt
= 1;
41 ADD2INITLIB(init_mouse
, 10);