Mail Archives: djgpp/1997/03/02/08:48:10
Paul Derbyshire writes:
>I have found a bug in Allegro with the key[KEY_LSHIFT]. Regardless of the
>state of this key, key[KEY_LSHIFT] is always indicating a keypress! The
>RSHIFT works as expected though.
Really? They work ok for me...
What happens when you run this test prog?
#include <stdio.h>
#include <allegro.h>
void main()
{
allegro_init();
install_keyboard();
while (!key[KEY_ESC]) {
printf("left: %s, right: %s \r",
key[KEY_LSHIFT] ? "yes" : "no",
key[KEY_RSHIFT] ? "yes" : "no");
fflush(stdout);
}
clear_keybuf();
}
/*
* Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
* Beauty is a French phonetic corruption of a short cloth neck ornament.
*/
- Raw text -