Results 1 to 8 of 8

Thread: anybody knows joystick coding?

  1. #1
    Guest

    anybody knows joystick coding?

    Hi,
    I want to use joystick controls in my program. But I don't know where to find those functions, how it works etc. Can anybody tell me where i can find a documentation or tutorial for that?

    Thanks in advance

    Angelo

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: anybody knows joystick coding?

    Here maybe.

  3. #3
    Guest

    Re: anybody knows joystick coding?

    thanks bob.

    My program is sort of platform independent. If I'm using directx for joystick then won't the program is resticted to windows environment?

    thanks again

  4. #4
    Guest

    Re: anybody knows joystick coding?

    I'm using VC++ & opengl. full source code in opengl.

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: anybody knows joystick coding?

    If you use DirectX, your program will be restricted to the Windows platform, yes. I don't know of any pltform independent library that can handle joystick input, sorry.

    But on the other hand, there's no such thing as platform independent code when you start doing more advanced stuff. Different platforms are so different that you have to use compiler directives to compile different parts of code for different platforms.

    I suggest you go for DirectX for Windows, and some other library for other platforms. For example, make a generic joystick input function, so you can use the same function, in the same way, for all platforms. The function itself can be different for all platforms.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    184

    Re: anybody knows joystick coding?

    SDL can handle joystick input. it's like directx (libraries for sound, music, input, networking, etc.) but for many platforms.

    b

  7. #7
    Senior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    New Zealand
    Posts
    111

    Re: anybody knows joystick coding?

    i heard that glut has a joystick function

  8. #8
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: anybody knows joystick coding?

    Er, yeah, forgot that GLUT has some joystick support. But on the other hand, it only works (IF it works ) under Windows.

Similar Threads

  1. P.O.V. button on Joystick?
    By TolTol in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-09-2003, 05:45 AM
  2. how to access a joystick
    By in forum OpenGL: macOS
    Replies: 1
    Last Post: 02-10-2003, 12:09 PM
  3. Joystick help needed
    By bsperlin in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-15-2002, 11:23 PM
  4. Joystick Programming
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-13-2001, 10:18 PM
  5. Joystick & GLUT ?
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-27-2000, 01:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean