1. advanced keyboard routines
Hello everybody,
I'm new to this mailing list. I am an amateur game programmer and
have so far been delighted with Euphoria. However, I have run onto a
few problems, well actually just one that I can think of right now. I
have noticed that the keyboard routines read from it in a text based way
e.g. a keypress registers once then is repeated several times if the key
is held down and two or more keys cannot be read simultaneously. I'm
sure you can see how this limitation can get in the way of game
programming.
I am aware of a set of routines that make use of the "ctrl", "alt",
"shift", "caps lock" etc... keys for this purpose. However, this
aproach does not meet my programming needs. I don't want to belittle
the work put into them but they're just not what I'm looking for.
So, if anyone has knowledge of or access to a solution to my problem
please like write before I die or something.
Most Sincerely,
Lewis Townsend
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
2. Re: advanced keyboard routines
>e.g. a keypress registers once then is repeated several times if the
>key is held down and two or more keys cannot be read simultaneously.
I'm
>sure you can see how this limitation can get in the way of game
>programming.
Easy. Download Michael Bolin's keyread.e off of the archives page.
It returns a sequence containing the keycodes of the keys pressed. (note
that they are *NOT* the ASCII codes. You'll probably have to play around
with it to see which keys return which codes.)
_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]