Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: two questions...

  1. #1
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    New Zealand
    Posts
    112

    two questions...

    hi there
    1st Question :
    im using GLUT and im using glutKeyboardFunc to see if a key is pressed but i need to know when a key is unpressed what would be the easyest to do this?
    Question 2: i need to have joystick input for my program and i have no idea where to start
    thanx in advance
    jono

  2. #2
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: two questions...

    What platform are you working on?

    The simplest solution is to switch to a different windowing framework. There are a number of useful libraries which support various different functionalities and platforms.

    Regards,
    Jim

    Originally posted by jono_123:
    hi there
    1st Question :
    im using GLUT and im using glutKeyboardFunc to see if a key is pressed but i need to know when a key is unpressed what would be the easyest to do this?
    Question 2: i need to have joystick input for my program and i have no idea where to start
    thanx in advance
    jono
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    New Zealand
    Posts
    112

    Re: two questions...

    i programing in windows
    where can i find these librarys from?
    and which of my questions where you answering?

  4. #4
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    133

    Re: two questions...

    Both questions.

    Cpw

    GLFW

    FreeGLUT

    FLTK

    Or check the opengl.org listings for Frameworks .

    My personal favorite is Cpw, but hey, I wrote that library. It supports everything your looking for. The code is free and well commented so if your looking for good example code it's a good place to start as well.

    Regards,
    Jim



    [This message has been edited by jmathies (edited 05-22-2002).]
    --
    Jim Mathies http://www.mathies.com/

    \"The best way to predict the future is to invent it."

  5. #5
    Junior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    New Zealand
    Posts
    112

    Re: two questions...

    thanx for that
    i got it under control now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •