Thread: Joystick

  1. #1
    Registered User
    Join Date
    Aug 2003


    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.


  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Seattle, WA
    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."

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    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).

    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, 11:19 AM
  2. Request for Code for Joystick
    By dreamer77 in forum Game Programming
    Replies: 9
    Last Post: 05-03-2007, 11:38 PM
  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, 03:13 PM