Qbasicnews.com

Full Version: Disable keyboard delay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I disable the delay when depressing a key on the keyboard so that pressing and holding any key immediately causes it to repeat?

Is it possible to disable the repeating itself?

Is it possible to clear the cache of keyboard entries, so that they don't get backed up and cause irritating beeps and pauses?
yeah

http://rel.betterwebber.com/MyProgs/AFTut.zip

Check out the keyhandler. ;*)
im just saying it is possible but it's too late for me to find the answer.

edit: answer to late
Check out port 60h. It is the keyboard command port.
That's the typematic rate (also known as a repeat rate) and is the amount of time a computer will repeat a single character when its key is held down. You can change that value via port &H60 as Neo said.

This changes the typematic rate for me in dos. I grabbed this off a qbasic news group. I think the original poster was named brainsawx.

Code:
OUT &H60, &HF3
FOR delay = 1 TO 1500: NEXT
OUT &H60, value%

The delay may have to be longer on faster pc's. The value% is the new typematic to set. I think &H2B is the system default.

- Dav
Use 0 for value% if you want the fastest mode.