Results 1 to 5 of 5

Thread: Keyboard Help

  1. #1
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Keyboard Help

    I have GLUT, and I like GLUT except for the fact its keyboard routines are CRAP. You can only read a single key press at a time. Now, is there a way I can read more than 1 keypress at a time with DirectInput or something similar but still keep the rest of my GLUT structure (initialisation).
    Thanks
    :: Sleep is a poor substitute for caffeine ::

  2. #2
    Member Newbie
    Join Date
    Mar 2001
    Location
    .., ..., ...
    Posts
    31

    Re: Keyboard Help

    Try Nehe's Tutorials - Lesson 23 .
    Or send me an email: Dev@Geniuz.de (please try nehe first)

    GL HF

    Geniuz
    It does not matter who is right, when there is no one left!!!

  3. #3

    Re: Keyboard Help

    Yeah, I've also been very unimpressed with
    glut's keyboard handling (not being able
    to chord keypresses). Is there a particular reason why this can't be done (if it actually is complete impossible, I don't know)? The source is available for many implementations (mesa's)...

    scott olsson

  4. #4
    Guest

    Re: Keyboard Help

    GLUT can detect both if a key is pressed and then it is released so it is not hard to handle multiple keys. Save the states in some variables.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Sydney, NSW, Australia
    Posts
    426

    Re: Keyboard Help

    Thanks! That is exactly what I needed to know! I can see why by default it wont read more than a single key press at a time...
    :: Sleep is a poor substitute for caffeine ::

Similar Threads

  1. keyboard
    By angel111 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-06-2011, 10:18 PM
  2. keyboard
    By angel111 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-06-2011, 12:01 PM
  3. Keyboard Hit
    By Mukund in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-24-2010, 02:26 AM
  4. keyboard
    By Dogcow in forum OpenGL: macOS
    Replies: 3
    Last Post: 10-27-2002, 01:51 PM
  5. Keyboard: how can i read the buffer of the keyboard ?
    By Bahamut_france in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-02-2001, 08:13 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