starting mag in l4con virtual console
Adam Lackorzynski
adam at os.inf.tu-dresden.de
Thu Jun 28 00:34:00 CEST 2012
On Tue Jun 26, 2012 at 20:01:47 +0400, Valery V. Sedletski wrote:
> Adam Lackorzynski wrote:
> >Also, I found that there is two input plugins, one of them using
> >event interface, other using libinput library. I suspect that I
> >must to use the event one, but how?
> >Yes. It's somewhat automatic. The input-plugin will not work if there's
> >no vbus, and the event plugin will work when it finds 'ev'.
> >>I found in the event input plugin source that it requires the "ev"
> >>cap. But where I can get it from?
> >The framebuffer is actually a L4Re::Console which is a combination of
> >the Goos interface and events. So just use the same for both.
> >
> >>I start Mag this way:
> >>
> >>loader = L4.default_loader;
> >>...
> >>local mag_svc = loader:new_channel();
> >>
> >>-- Start mag
> > local conwin = con_svc:create(L4.Proto.Goos, "g=800x600");
> >>loader:start(
> >> {
> >> caps = {
> > fb = conwin;
> > ev = conwin;
> >> svc = mag_svc:svr();
> >> },
> >> l4re_dbg = L4.Dbg.Warn,
> >> log = {"mag", "green"},
> >> },
> >> "rom/mag");
> >
> >Adam
> I tried this way, but Mag still gets no mouse input. :( Maybe, Mag
> it is broken? (DOpE works this way, even without 'ev' to be
> assigned, but Mag doesn't) Or, is it correct to assign the same
> object to 'fb' and 'ev'? Is it automatically typecasted? (As I
> understood, 'conwin' is L4Re::Console, which is derived from
> L4Re::Video::Goos and L4Re::Event, so here is the implicit typecast)
Mag is trying to be smarter how it handles its input devices and in this
particular case it's missing some smartness as l4con just provides one
stream. That's up on some todo list now...
Adam
--
Adam adam at os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
More information about the l4-hackers
mailing list