| delorie.com/archives/browse.cgi | search |
| From: | "Chia" <chia AT top DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Interesting Allegro Keyboard Phenomenon... |
| Date: | Mon, 2 Nov 1998 16:05:27 -0600 |
| Organization: | 404 Software |
| Lines: | 24 |
| Message-ID: | <71la3g$q1t@nnrp4.farm.idt.net> |
| References: | <Pine DOT SGI DOT 3 DOT 95 DOT 981102130902 DOT 6629A-100000 AT paju DOT oulu DOT fi> |
| NNTP-Posting-Host: | max1-40.top.net |
| X-Newsreader: | Microsoft Outlook Express 4.72.2106.4 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.2106.4 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Do you use a custom keyboard handler? In my programs, ctrl has a
tendency to get "stuck" if it is used when my own keyboard handler
is active. Again, pressing ctrl once "unlocks" this behaviour.
I'm using Allegro's keyboard routines, but I'm using a keyboard callback
function.
This is the function, but it doesn't have anything to do with the shift key
so... i dunno.
int jgKeyCallback(int key)
{
if ((key >> 8) == KEY_INSERT)
{
// toggle keyboard mode (just a global)
(KeyboardMode == insert)
? (KeyboardMode = overwrite)
: (KeyboardMode = insert);
}
return key;
}
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |