thomas@gemed.com (Thomas J. Stirn) (03/01/90)
I've been fooling around with getting/setting the mouse sensitivity through the use of the Dos class in Smalltalk/V 286. "to get the mouse sensitivity" | aDos | aDos := Dos new. aDos setReg: 0 to: 27; "AX = function #27 get mouse sensitivity" interrupt: 16r33. "invoke interrupt 33h" Dos checkDosError: aDos registers. ^aDos registers. "to set the mouse sensitivity" | aDos | aDos := Dos new. aDos setReg: 0 to: 26; "AX = function #26 set mouse sensitivity" setReg: 1 to: 75; "BX = vertical sensitivity" setReg: 2 to: 75; "CX = horizontal sensitivity" setReg: 3 to: 75; "DX = double speed threshold" interrupt: 16r33. "invoke interrupt 33h" Dos checkDosError: aDos registers. ^aDos registers. This doesn't work at all. It seems that any function number over 18 doesn't work and any function over 30 locks up Smalltalk, even to the point that control-break will not invoke the debugger (I end up having to reboot). Has anyone else run into a problem with the mouse interrupt or am I doing something wrong? I am using version 6.25 of the microsoft mouse driver. Tom