Keyboard Help
Posted: Fri Feb 01, 2008 3:16 pm
Hi everyone; I don't usually post on this site, but it seems quite fascinating. Anywho, I have this code for a game I'm working on:
Anyway, It's all part of a loop. The problem is, is that I have that delay once I first press the button and hold it, then it goes without any delay until I release the button.
I've tried to use a command with hex code (I forgot what it was), and it worked, except that after a second or two of holding that key down, the computer beeps at me.
What do I need to do so I can press and hold a key; and for every loop in which the key is held, the "character" moves a step (and without beeps)? What I guess what I'm looking for is smooth character movement and not jagged. Thanks in advance and God Bless!
Code: Select all
a$ = INKEY$
IF a$ = "??" then (do this)
IF a$ = "??" then (do that)
IF a$ = "??" then (do this)
I've tried to use a command with hex code (I forgot what it was), and it worked, except that after a second or two of holding that key down, the computer beeps at me.
What do I need to do so I can press and hold a key; and for every loop in which the key is held, the "character" moves a step (and without beeps)? What I guess what I'm looking for is smooth character movement and not jagged. Thanks in advance and God Bless!