Results 1 to 4 of 4

Thread: driver

  1. #1

    Thread Starter
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106

    Question

    How do I use a driver file to control a device like the mouse or the soundblaster?
    mojo

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3

    Thread Starter
    Lively Member TB's Avatar
    Join Date
    Feb 2001
    Location
    Austria
    Posts
    106

    Unhappy

    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.
    mojo

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width