2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
7 #include <aros/symbolsets.h>
8 #include <hidd/mouse.h>
9 #include <hidd/keyboard.h>
10 #include <proto/exec.h>
11 #include <proto/oop.h>
13 #include LC_LIBDEFS_FILE
15 static int LinuxInput_Startup(LIBBASETYPEPTR LIBBASE
)
17 OOP_Object
*ms
, *kbd
= NULL
;
19 D(bug("[LinuxMouse] LinuxMouse_Startup()\n"));
21 ms
= OOP_NewObject(NULL
, CLID_Hidd_Mouse
, NULL
);
23 HIDD_Mouse_AddHardwareDriver(ms
, LIBBASE
->lsd
.mouseclass
, NULL
);
24 OOP_DisposeObject(ms
);
27 kbd
= OOP_NewObject(NULL
, CLID_Hidd_Kbd
, NULL
);
29 HIDD_Mouse_AddHardwareDriver(kbd
, LIBBASE
->lsd
.kbdclass
, NULL
);
30 OOP_DisposeObject(kbd
);
34 /* We use ourselves, and noone else */
35 LIBBASE
->library
.lib_OpenCnt
= 1;
40 ADD2INITLIB(LinuxInput_Startup
, 10);