Keyboard settings for DOS... hmmm...
You can:
* Use MODE CON to change the typematic rate. Add the following line somewhere on your AUTOEXEC.BAT. Be aware that some keyboards don't recognize this command, and
you MUST set these both values
together:
Code:
MODE CON [RATE=r DELAY=d]
being r the rate at which a character is repeated on the screen when you hold down a key, and d the amount of time that must elapse, after you press and hold down a key, before MS-DOS starts to repeat the character.
Valid values for r are in the range 1 through 32. These values are equal to approximately 2 to 30 characters per second. Default value is 20 for IBM AT-compatible keyboards and 21 for IBM PS/2-compatible keyboards. For d, the values allowed are 1, 2, 3, and 4 -that's it: 0.25, 0.50, 0.75, and 1 second. Default is 2.
* Check INT 16, AH 3 on your fave assembler to manipulate directly the values. The almighty Google says that:
Quote: AL = 00 set typematic rate to default
01 increase initial delay
02 slow typematic rate by 1/2
04 turn off typematic chars
05 set typematic rate/delay
BH = repeat delay (AL=5)
0 = 250ms 2 = 750ms
1 = 500ms 3 = 1000ms
BL = typematic rate, one of the following (AL=5)
00 - 30.0 01 - 26.7 02 - 24.0 03 - 21.8
04 - 20.0 05 - 18.5 06 - 17.1 07 - 16.0
08 - 15.0 09 - 13.3 0A - 12.0 0B - 10.9
0C - 10.0 0D - 9.2 0E - 8.6 0F - 8.0
10 - 7.5 11 - 6.7 12 - 6.0 13 - 5.5
14 - 5.0 15 - 4.6 16 - 4.3 17 - 4.0
18 - 3.7 19 - 3.3 1A - 3.0 1B - 2.7
1C - 2.5 1D - 2.3 1E - 2.1 1F - 2.0
returns nothing
- if the typematic rate is not within range,no action is taken
- available on AT and PS/2 machines with extended keyboard support
As for optical mice working on plain DOS, I've never seen any real mode drivers supporting optical devices.