| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Input from keyboard |
Hello all,
I'm currently writing a game in pascal.
My problem is that when I'm holding the left and up keys on the keyboard,
the program won't read the spacebar..
I get keyboard input through a keyboard ISR which sets boolean flags when
each key is pressed and released.
The flags are set by a CASE statement which reads scancodes from the
keyboard port and sets the appropriate key flag. This all happens within
the ISR. Also the ISR is not chained. It hands control back to the regular
ISR at or near program termination. All the flags are held inside a record,
so to inquire about a key state the line is:
{code}
IF Key.Space THEN {do stuff}
{more code}
I have also altered the order in which the spacebar flag was set and placed
it after the cursor keys were set, but this didn't seem to make any
difference..
Anyone have any ideas an how to make the ISR update each key flag
regardless of which keys are already pressed?
Thanks for any help..
cul8r,
Karl.
--- Maximus/2 3.01
* Origin: Tir na nOc 066 245944 -=Cead mile failte=- (3:626/667)SEEN-BY: 633/267 270 @PATH: 626/667 660 711/401 808 50/99 635/544 727 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.