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

Re: [MiNT] patch:MiNT:keyboard



On Tue, 2010-06-22 at 17:52 +0200, Jo Even Skarstein wrote:
> On 06/22/2010 05:43 PM, Matt Waller wrote:
> > An older document [1985 Bios] refers to mouse buttons, which is an
> > alternate idea..
> > 
> > (11) kbshift
> >            LONG kbshift(mode)
> >            WORD mode;
> >                  If 'mode'  is  non-negative,  sets  the  keyboard
> >                  shift  bits accordingly and returns the old shift
> >                  bits.  If 'mode' is less than zero,  returns  the
> >                  IBM-PC  compatible state of the shift keys on the
> >                  keyboard, as a bit-vector in the low byte of D0.
> >                  Bit assignments are:
> >                        0     Right shift key
> >                        1     Left shift key
> >                        2     Control key
> >                        3     ALT key
> >                        4     Caps-lock
> >                        5     Right mouse button (CLR/HOME)
> >                        6     Left mouse button (INSERT)
> >                        7     (reserved, currently zero)
> 
> Yes, this corresponds with what I've seen earlier. tos.hyp also says
> that these two bits represents the mousebuttons. So the question is if
> TOS sets these bits when Home and Insert are pressed alone, or just when
> pressed together with Alt.

Right. Are you checking this out Jo Even ?

Alan