Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!samsung!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.programmer Subject: Re: detecting keypreses under basic Message-ID: <886@cbmger.UUCP> Date: 13 Feb 91 08:53:32 GMT References: <8247@plains.NoDak.edu> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 19 In article <8247@plains.NoDak.edu> person@plains.NoDak.edu (Brett G. Person) writes: > >I'm working with someone who can only type with one finger. I need a way to >make the shift key stick so that he can do shifted characters. >Can something like this be done under basic? Hmm, there are difficult (or dirty) ways to read the keyboard more directly. But do you need *every* key? If not, you could declare one of the funtion keys as a Shift-Lock (opposed to already existing Caps-Lock). To reset the Shift-Lock status, you could use the same function key by toggling, or just another funtion key (say F1 and F2). You can read the function keys easily with INKEY$. You keep their status in an own variable, then make a table of all keys with their unshifted and shifted characters, and do a little conversion according to the Shift-Lock status on your own. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk