Path: utzoo!attcan!uunet!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga Subject: Re: How to read the keyboard? Keywords: Amiga, Keyboard, Intuition Message-ID: <2091@lpami.wimsey.bc.ca> Date: 5 Oct 90 22:16:01 GMT Lines: 20 Return-Path: To: van-bc!rnews In <2305@gould.doc.ic.ac.uk>, cpb@doc.ic.ac.uk (C P Brown) writes: >Can anyone tell me the best Intuition-friendly way of saying >"is the z key pressed down at the moment" (or any other key) so that >I can detect whichever keys are being pressed? > >I'm aiming to do it in Modula-2, but C or assembler or any pointers in >the right direction welcomed. Open the keyboard.device, use DoIO, and use the IO command CMD_READMATRIX -larry -- It is not possible to both understand and appreciate Intel CPUs. -D.Wolfskill +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+