www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/15/06:32:28

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: missing KEYs?
Date: 15 Feb 1997 09:20:40 GMT
Organization: Oxford University
Lines: 16
Message-ID: <5e3v58$3dg@news.ox.ac.uk>
References: <5e3iri$lme AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Paul Derbyshire (ao950 AT FreeNet DOT Carleton DOT CA) wrote:


: I have allegro 2.1. I noticed there's a KEY const for numpad 5 but not for
: other numpad keys, such as 7,8,9,4,6,1,2, and 3.

7 = Home, 8 = Up, 9 = PgUp, etc...

I believe this actually depends on the Numlock state, though... try it and
see (scan all numbers i from 0 to 127, checking the values of key[i], then
try holding down a few keys). I think readkey() returns unique values for
every key on the keyboard, presumably including the Alt keys.

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019