How to disable arrow keys
Posted: Mon Jan 26, 2009 7:12 pm
Hello, I wonder when using the INPUT statement, example:
10 INPUT"Please enter your name",A$
the user can use array keys (up/down/left/right) to move across the screen but I do not want that to happen!
So i wonder, is there anything to (example) POKE for, in order to disable UP/Down/Left/Right keys BEFORE issuing INPUT, and then POKE-it back in "normal" to enable it AFTER Input is complete?
Example:
10 Rem - Disable array keys (POKE???) or something?
20 INPUT ...
30 Rem - Enable back array keys (POKE?)
10 INPUT"Please enter your name",A$
the user can use array keys (up/down/left/right) to move across the screen but I do not want that to happen!
So i wonder, is there anything to (example) POKE for, in order to disable UP/Down/Left/Right keys BEFORE issuing INPUT, and then POKE-it back in "normal" to enable it AFTER Input is complete?
Example:
10 Rem - Disable array keys (POKE???) or something?
20 INPUT ...
30 Rem - Enable back array keys (POKE?)