Keyboards

Started by
1 comment, last by Helicon56 21 years, 10 months ago
Hi, I decided that i''m not learning things in enough detail using directx or opengl, by letting them do all the work for me. So, i''ve begun work on what is eventually going to be a directx-like engine, using DJGPP, though its totally for a learning experience, so dont bite my head off for aiming too high . Anyway, things are going fine, i''ve just about finished the 2D side of it, but i just cant seem to figure out how to read input from the keyboard. I''ve read some articles, and i can scan for the state of the control keys, but for the normal keys i want to use a bool to represent each key in an array, which can be set up at the beginning of each frame, so i can just look at a certain bool to see if a certain key is pressed. So, what i''m asking is, does anyone know of any way to scan through each possible key on a keyboard to see if it''s pressed or not? Thanks for any help, Helicon56.
Advertisement
I haven't done this in a long time, but here's a site that explains how to go about doing it.

Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks.


[edited by - thooot on June 4, 2002 11:22:39 PM]
Great, thanks alot, exactly what i was looking for

This topic is closed to new replies.

Advertisement