Results 1 to 3 of 3

Thread: Problem receiving input from glut

  1. #1
    Member Contributor
    Join Date
    Sep 2008
    Posts
    65

    Problem receiving input from glut

    Hi,

    I am making something like a mario like game. Whenever forward key is pressed he moves until the button is released. Whenever a jump is pressed like a space bar and forward key is keep pressed,
    after jumping the mario doesnt receive the input from the forward button.The user has to release the forward button and repress the forward button to receive the input. Can someone helpme regarding this.

    Thanks & Regards,
    brett.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Problem receiving input from glut

    For games, use GLFW instead of glut, much easier.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    CA
    Posts
    408

    Re: Problem receiving input from glut

    GLFW or GLUT it may not matter, depending on the particular keys pressed you may be seeing a limitation of the keyboard itself -- Keyboards_Are_Evil or see logitech post

    I opened a text editor on my computer and started holding down the space key and the cursor moved as expected but the second I pressed an arrow key the space bar was ignored.

Similar Threads

  1. GLUT and input
    By mikau in forum OpenGL: General
    Replies: 2
    Last Post: 08-07-2008, 07:53 PM
  2. Something about glut keyboard input
    By Totti in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-14-2007, 08:59 AM
  3. Key input Delay with Glut
    By chaney in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-26-2002, 03:11 AM
  4. GLUT & Input
    By MH in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-13-2001, 02:07 PM
  5. GLUT + Input = crash ??
    By edotorpedo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-09-2000, 12:45 PM

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