Qbasicnews.com

Full Version: Mouse not found in DOS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my qb program finds the mouse while running in windows xp. when i made a ms-dos startup disk and booted with it, my program doesn't find the mouse. what should i do?

it's a usb optical mouse with a round (serial?) adapter being used.

i have a second question. how can i edit the keyboard settings for DOS? the keystroke repitition is very slow.
Check to see if there's any dos drivers for that mouse, and load them in the autoexec.bat. For the keyboard, use a keyboard handler. Almost every lib has one
Any PS/2 mouse driver should work for the mouse. Your keyboard rate can be set for DOS in your BIOS setup (usually "typematic rate" in the "BIOS features" section.)
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.
I have a logitech optical mouse (can be PS/2 or USB), and it works fine with the standard microsoft mouse driver when plugged into a PS/2 port. The hardware inside the mouse takes care of the optical interface.
That only shows that I'm still on greasy and old ball mice. I'm afraid of technology, you know. :-?
I actually just got an optical mouse a few months ago (tired of cleaning out the old ball...) I thought it might require a special driver or something, but nope, plugged it in and it worked just like the old one. Big Grin
I too changed over to an optical mouse but there wasnt any difference when running my DOS apps, even QB programs using the mouse.
thank you, i found mouse.com using google and run it off the startup disk. optical makes no difference. i could also put it into autoexe.bat, yes.

thanks for the MODE CON reminder... i once did this but forgot.

thanks again