Path: utzoo!attcan!uunet!cs.utexas.edu!usc!jarthur!jshortle From: jshortle@jarthur.Claremont.EDU (John Shortle) Newsgroups: comp.sys.amiga Subject: Reading the Keyboard Message-ID: <5946@jarthur.Claremont.EDU> Date: 7 Apr 90 20:30:38 GMT Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 18 I have a question about reading the keyboard from a C program and am a bit confused by the numerous programming manuals I have. What I want to do is the following: Change the threshhold and key repeat speeds from within my program. Then I will have a loop that does the following: checks for a keyboard input; if nothing, continue with the rest of the code in the loop. if there is an input, figure out what key was pressed, and take appropriate action (but don't print the character), then continue with the rest of the code in the loop. If the user holds down a key, I want inputs to occurs as often as is specified by the keyboard threshhold and repeat values. It seems that the input.device would be the best way of doing this, but I am not sure how to read the keyboard from the input device. Is there an easy way of doing this (without adding an input handler, or should I be looking into a console or keyboard device)? Thanks for you help. Please reply through E-mail, unless you think others will be helped by your comments. John Shortle (jshortle@jarthur.claremont.edu)