Joystick

This is a discussion on Joystick within the C++ Programming forums, part of the General Programming Boards category; i am developing a pc game, and I need it to interact with the joystick, where can i get some ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    11

    Joystick

    i am developing a pc game, and I need it to interact with the joystick, where can i get some SDK (if I need any) for different manufacturers.

    Thanks

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    If you use directX I think you can use direct input and it takes care of compatibility...This should be on the game programming board
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Yeah, if you're running Windows, DirectX should work. Or, there should be a WinAPI function to read the "game port". These techniques will use the Windows driver.

    I think there is a de-facto standard... maybe a real standard for the joystick port. So, you could directly read the hardware port. You might want to do this if you are running true-DOS (not WinConsole).

    But,
    1- In general, hardware manufacturer's don't give you all the info you need. For example, printer manufacturer's no longer publish the escape codes to change fonts. The hardware manufacturer writes a driver to communicate thru Windows, and you write your application to communicate with thru Windows... Now, your application will work with any printer that has a Windows driver!

    2- Windows NT, 2000, and XP, won't let you communicate directly with the hardware, unless you write a kernel-mode driver. I assume Linux has hardware-access restrictions too.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. joystick program
    By Titanium in forum C++ Programming
    Replies: 2
    Last Post: 05-18-2008, 12:19 PM
  2. Request for Code for Joystick
    By dreamer77 in forum Game Programming
    Replies: 9
    Last Post: 05-04-2007, 12:38 AM
  3. how to input joystick simply?
    By denyilc in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2006, 02:35 AM
  4. Getting joystick movements.
    By Queatrix in forum C++ Programming
    Replies: 1
    Last Post: 01-04-2006, 02:58 PM
  5. joystick for computer instead of mouse
    By MisterSako in forum Tech Board
    Replies: 3
    Last Post: 08-28-2004, 04:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21