[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Ctrl-Alt-Del (Shutdown)



> > For applications as in "GEM applications" or "user mode tty programs"?
> >
> > For the first, evnt_keybd() (or evnt_multi(), respectively) provides
> > both the scan- and the ascii-code. For the latter, Cconin() provides the
> > ascii-code in bits 0-7 and the scancode in bits 16-23.
> >
> > Or did you intent something different than just getting the scancode
> > alongside with the ascii-code when reading from the keyboard?
> 
> I think Draco mean getting an keyboard event too only if shift/ctrl is
> pressed/released.

Indeed. When shift alone is held down, neither evnt_multi() nor
Cconin() returns. Since raw scancodes are now processed by MiNT, it is a
good occasion to implement something like this at kernel level. Perhaps in
a form of a device?

--
Konrad M.Kokoszkiewicz
mail: draco@atari.org
http://draco.atari.org

** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** Taka to juz natura pospolstwa, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.