Often the primary input for computer games. It boasts a very large versatility for direct input.

learn more… | top users | synonyms

1
vote
0answers
98 views

FreeGLUT keyboard IO timing and synchronization

Using FreeGLut's keyboard callbacks, glutKeyboardFunc(); glutKeyboardUpFunc(); glutSpecialFunc(); glutSpecialUpFunc(); When in the glutMainLoop pipeline do these functions get called? In other ...
0
votes
0answers
2 views

Problem with keyListener

so i have written a code,that i make a labyrinth,and i fill the JPanel with my figures Wall,Player,Road and Gate.I want by pressing the keys W,S,A,D to move the player.So i have wrote the following ...
0
votes
0answers
32 views

How do I make a Slick2D TextArea display newlines?

Whenever I press the Enter-key my Slick2D TextArea does not go to the next line. How can I make it do that? Here is the code that involves the TextArea: private TextField ta; public void ...
-1
votes
0answers
27 views

In pyglet, how do I set up a basic keyboard-controlled game?

I've been tasked with making a game using the pyglet module. I have very little experience. I want to make a mancala-style game with a window containing a board with 8 buttons or tiles on either side ...