Re: [AD] Problem with key_shifts on Windows. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Problem with key_shifts on Windows.
- From: Victor <vwss1984@xxxxxxxxxx>
- Date: Fri, 28 Apr 2006 13:32:33 -0300 (ART)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0/6Y7ipK+Dj6KsTN6D8L40M2Uqo2lSOYnnUUbfNOwD/BKC5y/dRHRQ8jYRBYEJzaNEB+MzsX5JhafDrHLMhOCcDVBi1xT+IonG4gUrXbf4BBjAKBsWPtYl38Dh/Y3izX7zKQBDh0jfRWhVZkYFTaaXufUefL3L/EW6Hf/MaYoBs= ;
I confirmed that. In exkeys, when i pressed the ALT GR key, the Left
control got a keypress too. This could stuck the Esc key too.
I'm in Windows 2000 with a ABNT2 brazilian keyboard.
Victor Williams Stafusa da Silva
--- Andrei Ellman <ae-a-alleg@xxxxxxxxxx> escreveu:
> aj wrote:
> > can these problems be demonstrated/or not in the
> /examples/exkeys.exe ?
>
> I just tried exkeys.exe (only under Windows 2000) and at first, the
> problem does not appear. However, on closer inspection of the code,
> the
> bit where it tests the key_shifts variable is immediately preceded by
> a
> ureadkey(NULL); I tried adding readkey(NULL) to my example program,
>
> and although it now stops and waits for a regular key (letter,
> number,
> etc) to be pressed before reading key_shifts, when I press a regular
> key, the key_shifts variable is updated with the correct state of the
>
> shift-keys. From this, I conclude that the windows version only
> updates
> key_shifts when a regular key is pressed, but the DOS version keeps
> key_shifts in sync with the state of the keyboard. If exkeys.exe had
> a
> portion where it just displayed the key_shifts variable without
> waiting
> for readkey(), then the problem will be demonstrated.
>
> A manifestation of the problem where ESC does not work when the
> CTRL/ALT keys are 'stuck' in exkeys.exe is where I cannot press ESC
> to
> continue unless I press some other key first.
>
> Also, in exkeys, when I press ALT-GR, in the table of keys on the
> right
> of the screen, it says I've pressed both ALT-GR and CTRL when I've
> not
> pressed CTRL. If CTRL is held down, the values for both ALT-GR and
> CTRL
> are correct. However, if I hold down RCONTROL when I'm holding down
> ALT-GR, then the indicator for CTRL becomes un-set, although if I'm
> holding down all 3 keys at once, the indicators are at their correct
> values. None of this happens with the regular ALT key.
>
> I have a UK keyboard. According to the Windows Input-locales section
> of
> the regional options applet, the input-language is "English (United
> Kingdom)", and the Keyboard layout / IME is "United Kingdom".
>
> BTW. I added the following lines inside the main loop of my test
> program
>
> if(keyboard_needs_poll())
> {
> poll_keyboard();
> }
>
> and the results are still the same - even if I get rid of the if and
> just call poll_keyboard()
>
>
> AE.
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
_______________________________________________________
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
http://br.info.mail.yahoo.com/