delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/02/08:48:10

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro BUG with LSHIFT
Date: Sun, 2 Mar 1997 11:24:07 +0000
Organization: None
Distribution: world
Message-ID: <Y4eFJkAXNWGzEwEf@talula.demon.co.uk>
References: <5f8esq$ats AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 32
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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