Mail Archives: djgpp/1997/02/15/06:32:28
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 -