new public unsafe static int install_keyboard() { int ret = AllegroAPI.install_keyboard(); IntPtr hdl = LoadLibrary(ALLEG_DLL); if (hdl != IntPtr.Zero) { IntPtr addr = GetProcAddress(hdl, "key"); if (addr != IntPtr.Zero) { key = new Keys(); Keys.key = (byte *)addr.ToPointer(); } } return(ret); }