Chris
|
Mouse Programming
Posted: Wed Apr 05, 2000 5:53 am
|
I've spent the last couple days writing my own little mouse routines and I can initialize the mouse and get it shown on the screen (through BIOS and custom functions). When I use the BIOS functions, I can get the pointer shown and the mouse stays within the coordinates of the screen. But, when I tell the mouse to print a pixel at it's coordinate, the pixel is 70 to 80 pixels off horizontally and 30 pixels off vertically. It's not a problem with my pixel routine but in the way that I handle the mouse coordinates. Is there some type of special math formula I should be using or something?
When I use my own mouse routine, I can get my custom mouse pointer shown and I can get a pixel to print where ever the mouse is successfully. My only problem is that I can't get the range set, even when I try to set it through bios. The mouse will wrap around like 3 times and then stop (when you roll it to the right).
|