1. Re: keyboard
Hi Ferdinand,
You could do something like this....
<SNIP>
if get_key() = 'F' then Explode() end if
<SNIP>
to be more practical, do this...
<SNIP>
atom KPress
Kpress = -1 -- what get_key() returns if no key is pressed
-- loop while 27(ESC) isn't pressed
while Kpress != 27 do -- 27 is the keycode for ESC
Kpress = get_key()
if Kpress = 'F' or Kpress = 'f' then
explode()
end if
end while
<SNIP>
to get the keycodes for the different keys, use key.bat in your EU/BIN
directory
Chris
>----- Original Message -----
>From:
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Sent: Tuesday, June 13, 2000 5:22 AM
>This may sound like a stupid question but ...... HOW DA HELL DO YOU
>PROGRAM THE KEABORD !!!! I just don`t understand . How do I >program the
keabord so that when I press a key the computer know that it is >the F (or
any other
>key ) and then somthing hapens like a bom expodes . In Basic all you have
to >do
>is type INKEY = F ( or any other key ) . Please reply . Thanks .
>Ferdinand Greyling
>from
>Terminal Software