|
-
Mar 3rd, 2001, 09:59 AM
#1
Thread Starter
Lively Member
How do I use a driver file to control a device like the mouse or the soundblaster?
-
Mar 3rd, 2001, 11:47 AM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 4th, 2001, 08:11 AM
#3
Thread Starter
Lively Member
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.
-
Mar 4th, 2001, 08:15 AM
#4
Monday Morning Lunatic
Oh...okay...you probably should have said you were using QBasic 
I never used it, so I can't really help here
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|