Results 1 to 4 of 4

Thread: joyGetPosEx

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    joyGetPosEx

    Hey,

    I am using that joystick to retrieve when a button is being pressed on a device.
    It works fine when it is connected to the game port.
    I am using one that is connected to an adapter which in turn is plugged into an USB port.
    The function doesn't return anything.
    How can I find out whether a user has pressed anything with the joystick is USB??

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    you would probably be much better off using DirectX (DirectInput) for joystick inputs... i think those joystick apis you are using are pretty outdated and probably don't extend to the functionality of USB pads that are plug and play with directX

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    I have never worked with directx.
    Do you know of any tutorials that I can take a look at?
    Any links would be greatly appreciated.
    Don't anthropomorphize computers -- they hate it

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    well first off i would recommend using directX 7 or 8 instead of directX9

    reason being is that if you are making a game (i guess since you are talking about a joystick and foot pedal objects ) some users video cards may not support directX9, but its backwards compatible with 7 or 8 so basically if you used 7 then people with 7, 8, and 9 should have no problems, and you aren't losing any functionality in the newer versions i dont think because usually its more to do with graphics than input

    but really i guess it depends on the case...


    as far as links... the best to give you is MS

    http://www.microsoft.com/downloads/s...n&categoryid=2

    the SDKs (for 9 at least) have .NET samples, i honestly don't know if you can even download a DX7 SDK anymore... anyways hope this helps a little

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