How do I use a driver file to control a device like the mouse or the soundblaster?
Printable View
How do I use a driver file to control a device like the mouse or the soundblaster?
To use the mouse you can use the GetCursorPos and SetCursorPos API functions. For sound you go through either the windows multimedia system or DirectX.
Thank you, but I want to use the drivers in QBasic.
I know the port adress of the Sound Blaster, but I don't know what commands I'll have to send to the port to create a sound (For example a sine wave), so I may use the driver to control this device.
To use the mouse in QB, is harder, because the mouse doesn't have a port address, just an interrupt, and I don't know how to use this.
Oh...okay...you probably should have said you were using QBasic ;)
I never used it, so I can't really help here :(