🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #25686

Keyboard reading

#25686
From: Neil Forsyth
Date: Fri, 13 Mar 1987 12:31
33 lines
2113 bytes
My first piece of text on the net is a cry for help.

Problem: How can you test the status of a particular key on the keyboard?
Simple question you would think but I can't do it. (Does that make me a moron?)

The GEMDOS & BIOS calls concerning keyboard input either wait until a key is
pressed or give you a key if there is one in the buffer now. None as far as I
can make out request info on specific keys (Mouse & Joystick buttons are one
exception).

I've got a copy of "The Anatomy of the Atari ST", which I think is the UK
version of the Abacus book in the US. 
In this book it states that the 6301 keyboard processor's normal action is to
announce each keypress to the operating system (presumably on an interrupt
basis). When the key is pressed the key number is sent (1 - 117) and when it
is released it is sent again with the top bit set.
The book is unclear about where this information appears.
I have an idea to use a set of flag bits to show the status of some keys. These
flags would be updated by an interrupt routine reflecting the status of the top
bit if the correct keycode arrived.

Please, can anyone help me?                     _____
Thanks in advance.                             ! /  ! <- Cut here
             ____                              !/   O
      /\    /                                  !   /!\
  ---/  \  /---                                !   / \
____/    \/        Neil Forsyth               _!_

-- 
 Neil Forsyth			JANET:	neil@uk.ac.hw.cs
 Heriot-Watt University		ARPA:	neil@cs.hw.ac.uk
 Dept of C.S.			UUCP:	..!ukc!cs.hw.ac.uk!neil
------
Technical Details
Message-ID: <1095@brahma.cs.hw.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!ukc!its63b!hwcs!neil

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!ukc!its63b!hwcs!neil
From: neil@cs.hw.ac.uk (Neil Forsyth)
Newsgroups: comp.sys.atari.st
Subject: Keyboard reading
Message-ID: <1095@brahma.cs.hw.ac.uk>
Date: Fri, 13-Mar-87 07:31:43 EST
Article-I.D.: brahma.1095
Posted: Fri Mar 13 07:31:43 1987
Date-Received: Mon, 16-Mar-87 04:08:07 EST
Reply-To: neil@cs.hw.ac.uk (Neil Forsyth)
Organization: Heriot Watt University, Computer Science
Lines: 33