PDA

View Full Version : Problem receiving input from glut



brett01
12-02-2009, 04:14 PM
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.

ZbuffeR
12-02-2009, 04:20 PM
For games, use GLFW instead of glut, much easier.

marshats
12-02-2009, 07:54 PM
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 (http://www.sjbaker.org/wiki/index.php?title=Keyboards_Are_Evil) or see logitech post (http://forums.pcper.com/showthread.php?s=52165ca571a01a7269ff05ddd7ac493d& p=3150901&postcount=4)

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.