Posted 21 February 2004 - 12:11 PM
Try the program
While k<>12 'it's k not equal 12
Start it and hold(!) any key (except [clear] - it stops the program). Look closely to the values.
:/ It prints something like x, 0, 0, x, x, x,0,x,0,x,0,0,x,... (where x is the key-number) :/
the only thing you can do is to say to the user to release the key and press it in an high frequency.
when the user then has the frequency the program checks the key-number the program will
always get x (when he/she/it presses the key short time before the program checks the number) or 0 (when he/she/it presses the key short time after the program checks the number)
or - another way - is the slow down the program with wait but this is not the correct way. :/
Posted 21 February 2004 - 01:53 PM
Posted 21 February 2004 - 05:15 PM
The way I do it now is to check the key again, if 0 was the first key (there may be an better way to do this)
(For the thing I need it it works - but what's when an os update corrects this? Let's see... )
Another thing (don't know if already known) is that an custom ending screen is not displayed when you switch the classpad off from eactivity-editor.
Posted 21 February 2004 - 05:28 PM
the best way to do getkey right now is:
Posted 21 February 2004 - 10:12 PM
That's the way i've been doing it
Posted 21 February 2004 - 11:10 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users