2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/symbolsets.h>
9 #define HiddKbdBase (LIBBASE->ksd.hiddKbdBase)
11 #include <hidd/keyboard.h>
13 #include LC_LIBDEFS_FILE
15 static int init_kbd(LIBBASETYPEPTR LIBBASE
)
18 OOP_Object
*drv
= NULL
;
19 struct Library
*OOPBase
= LIBBASE
->ksd
.cs_OOPBase
;
21 HiddKbdBase
= OOP_GetMethodID(IID_Hidd_Kbd
, 0);
23 kbd
= OOP_NewObject(NULL
, CLID_Hidd_Kbd
, NULL
);
25 drv
= HIDD_Kbd_AddHardwareDriver(kbd
, LIBBASE
->ksd
.kbdclass
, NULL
);
26 OOP_DisposeObject(kbd
);
32 LIBBASE
->library
.lib_OpenCnt
= 1;
36 ADD2INITLIB(init_kbd
, 40);