Interaction from the player that corresponds to action in the game. Or in simpler terms - pushing buttons!

learn more… | top users | synonyms

8
votes
1answer
1k views

How does an Input Pipeline work?

I found this article on implementing an input pipeline for Android, but I don't really understand how it works. I also don't completely understand the programming concept of a pipeline or a pool ...
6
votes
6answers
1k views

How do I identify mouse clicks versus mouse down in games?

What is the most common way of handling mouse clicks in games? Given that all you have in way of detecting input from the mouse is whether a button is up or down. I currently just rely on the mouse ...
12
votes
1answer
2k views

Using PS3 controller for input on Mac OSX

I've managed to find a USB driver to connect to the PS3 controller in OSX, and as reported here, can connect to the controller via Bluetooth. I've verified that the input is working properly via ...
1
vote
3answers
553 views

What should I use to handle input? [closed]

What should I use to handle input? I am wanting to use OpenGL so that my games are cross platform. DirectX provides input libraries, and OpenGL does not. Because my games need to be cross platform, I ...
2
votes
3answers
376 views

Efficient way of detecting a touched object in a game?

Imagine a Sims-like 2D game for a touch based mobile phone where one can interact with virtually any object in the scene. How can I efficiently detect which object is being touched by the player? In ...
3
votes
1answer
278 views

How do I use a PC Dance Pad with Xna?

I have a Dance Pad and I want use it in XNA as a controller. It has a USB connection. Can someone help me?
3
votes
2answers
636 views

How do I get consistent Xbox360 Controller input across Linux, Mac, and Windows?

I'm developing a browser plugin to provide joystick access to all browsers on all platforms. The issue that I'm running into is that OS X doesn't seem to provide Xbox 360 joystick input without ...
10
votes
2answers
601 views

In a GUI, should input be handled when the button is pressed or released?

In the menu system for our game (selecting levels, options, etc.), the player presses the a button on the gamepad to go to the next screen. I coded the menu system to wait until the button is released ...
4
votes
2answers
1k views

How can I get six Xbox controllers to provide input to an HTML5 game?

I'm creating a six player HTML 5 game designed to be played locally (Red Ice). I've previous set up handling 7 Wiimotes using something along the lines of Joy2Key to map each input for each player ...
6
votes
3answers
550 views

How standardized are joystick / gamepad configurations?

Right now I'm working on input for my game. The only controller I own is an XBOX 360 one. From what I can see, if a controller's stick has a Z axis, these are actually triggers. Essentially I'm ...
2
votes
1answer
308 views

iPhone, iPad Rendering Ahead of Input (4-5 seconds)

UPDATE I think I solved this one, though any thoughts or suggestions are always welcome! This one is truly bizarre... I'm developing using both an iPhone 3GS and an iPad 2. This symptom is ...
10
votes
5answers
776 views

Nested input in an event-driven system

I am using an event-based input handling system with events and delegates. An example: InputHander.AddEvent(Keys.LeftArrow, player.MoveLeft); //Very simplified code However, I started wondering ...
-2
votes
1answer
458 views

Did first generation Pokemon games use event driven input or poll based input?

Did the first generation Pokemon games for gameboy poll for the d-pad state or was the input state done based on events? I'm currently trying to implement a similar control and I'm interested in ...
3
votes
1answer
522 views

How to handle input from user

I am making an iphone opengl es 1.0 game. I am using a fixed timestep with interpolation on the end. One thread only. I am using CADisplayLink to fire the game loop. First question: is it okay to use ...
16
votes
3answers
4k views

Polling vs event driven input

I'm developing a game using polling for the input method. However, now that I'm delving deeper into the game menus and other UI components, I'm finding that I'd probably like to have event driven ...
8
votes
3answers
1k views

Key combinations on poll-based input

So assume you have an input system that is based on polling void update() { if( Keyboard[ 'A' ] ) // A is down } Say you want to be able to recognize 3 to 8 length key combinations ...
11
votes
6answers
14k views

How to handle mouse input in XNA?

I am developing a card game in XNA. Is there any OnClick event in XNA for objects? I am trying to make cards move when the player clicks on them. In this project, there is a Sprite class that draws ...
2
votes
1answer
663 views

Linux: find force feedback device for joystick device

Because SDL 1.3 is still a long way coming I implemented native force feedback (rumble) support for Aquaria: https://bitbucket.org/panzi/aquaria/ However, I could not find a way to find the according ...
3
votes
2answers
369 views

Where should input be used?

I'm working on an input system (in C#) and now I'm wondering, what is the best place to put input functionality? Currently what I was coding was a bunch of delegates which act as callbacks (i.e. ...
4
votes
1answer
1k views

Unity MouseWheel weapon change

I am trying to make a simple weapon change in Unity3D. The best way to do this is with the mouse scroll wheel, as far as I can see. I googled on how to do this and found that I have to use ...
8
votes
5answers
2k views

How to get elapsed time of keypress?

I need to be able to determine how long a key has been held down with high accuracy. For example if they key tapped really fast it could report a time that is less than the time for each update frame. ...
7
votes
2answers
724 views

How should i have the key/mouse input in an advanced java game?

I am a self taught programmer, so I do not know the proper ways to do things. I have made simple games like asteroids and snake, but in those games, you can easily modify the variables within the ...
5
votes
3answers
674 views

What's a good way to check that a player has clicked on an object in a 3D game?

I'm programming a 3D game (using C++ and OpenGL), and I have a few 3D objects in the scene, we can say they are boxes for this example. I want to let the player click on those boxes to select them ...
2
votes
2answers
455 views

Push or Pull Input Data In the Game Logic?

In the process of preparing my game for networking I'm adding a layer of seperation between the physical input (mouse/keyboard) and the actual game "engine"/logic. All input that has any relation to ...
3
votes
3answers
392 views

Pen tablet input for FPS

So in my FPS camera look code, I have something like this: window->camera->stepYaw( getMouseDx()*speed ) ; // mouseDx is mouse change since last frame window->camera->stepPitch( ...
2
votes
3answers
4k views

Understanding MotionEvent to implement a virtual DPad and Buttons on Android (Multitouch)

I'm trying to implement a virtual DPad in android, but I'm still very confused about how do I keep track of each trouch point, from the moment it is pressed, till it is released. In my code, I test ...
1
vote
1answer
566 views

Tetris Movement - Implementation

I'm developing a Tetris clone and working on the input at the moment. When I was prototyping, movement was triggered by releasing a directional key. However, in most Tetris games I've played the ...
6
votes
1answer
362 views

What are the benefits of designing a KeyBinding relay?

The input system of Quake3 is handled using a Keybinding relay, whereby each keypress is matched against a 'binding' which is then passed to the CLI along with a time stamp of when the keypress (or ...
1
vote
2answers
501 views

Improve mouse movement in first person game

In my current FPS game, I have the mouse setup in a way, that it always forces the position of the mouse to be centered at the screen. This gets the job done, but also gets very annoying, since the ...
6
votes
3answers
962 views

IDirect3DDevice9Ex and D3DPOOL_MANAGED?

So I wanted to switch to IDirect3DDevice9Ex, purely for the SetFrameLatency function, as fullscreen vsynced D3D seemed to produce noticable input lag. But then it tells me 'ha ha ha! now you can't ...
5
votes
4answers
622 views

Optimal touch controls for a twin-stick shoot 'em up?

So we recently launched a shoot 'em up arcade-type game (think Smash TV or I Made a Game with Zombies in It!). You can move in one direction and fire in another, so the ideal control scheme is ...
9
votes
1answer
402 views

Is there a gold standard for touch controls in scrolling shoot-em-ups?

Is there currently a "standard" for touch controls in shooters on platforms such as iPhone or Android? I've noticed that many of them enable auto-fire by default, or control the character via direct ...
18
votes
3answers
725 views

Do I, and how, separate the concerns of input and game objects?

In probably every game a developer has to somehow deal with input, may it be simple keyboard and mouse events, touch events or something as accelerometer input. This input directly of indirectly ...
12
votes
6answers
4k views

Making (or emulating) a “D-Pad” on a touch-screen; virtual d-pad

With the proliferation of touch based devices, many lacking a true D-Pad, I'm wondering if anyone has any resources on how to emulate a D-Pad on a touch screen? I'm specifically interested in XNA ...
6
votes
3answers
1k views

multi touch on HTML5 with JavaScript?

How action game controls should be implemented so that they would work on smart phones as well? At the moment I use wasd/arrow keys and I am able to handle for example two keys down at the same time. ...
4
votes
5answers
403 views

Will multi-touch become an important/standard method of input for PC games in the future?

We've seen that multi-touch on smartphones has been wildly successful. On the iPhone, in fact, it's the only tactile input the user can provide! However, I'm wondering how likely it'll be for ...
6
votes
2answers
2k views

How are components properly instantiated and used in XNA 4.0?

I am creating a simple input component to hold on to actions and key states, and a short history of the last ten or so states. The idea is that everything that is interested in input will ask this ...
3
votes
2answers
525 views

How do you test xbox (via PC) input without an xbox on XNA Game Studio?

Is it safe to just hookup a wired Xbox controller to my PC via USB? Do I need to buy a special PC Xbox controller? I've read conflicting reports. Any help is appreciated.
4
votes
11answers
379 views

Varying the strength of attacks by holding down the button

I am preparing a conference session about game design, and a question occurred to me that I haven't been able to answer with Google: In Mario the player varies the height of Mario's jump by holding ...
11
votes
5answers
3k views

Keyboard input system handling

Note: I have to poll, rather than do callbacks because of API limitations (SFML). I also apologize for the lack of a 'decent' title. I think I have two questions here; how to register the input I'm ...
2
votes
2answers
315 views

Voice input in games beyond voip chat

Is there any cross platform libraries available for handling input from a microphone? I am thinking beyond voice chat to noise / voice recognition. I am putting together a plan for a role playing ...
8
votes
3answers
638 views

How does one separate the acceleration due to gravity from other motion in accelerometer input?

How does one separate the acceleration due to gravity from other motion in accelerometer input?
58
votes
5answers
21k views

Good 2D Platformer Physics [closed]

I have a basic character controller set up for a 2D platformer with Box2D, and I'm starting to tweak it to try to make it feel good. Physics engines have a lot of knobs to tweak, and it's not clear to ...
1
vote
4answers
466 views

Compile time error handling for single programmer games?

Hey. My input system has a GetKey() method that returns a key in a map. Simple enough. However, I want to know if the key is not available - be it a typo, or misuse of wording, or something else. I am ...
9
votes
5answers
6k views

Handling keyboard and mouse input (Win API)

There is a number of ways to catch mouse or keyboard under Windows. So I tried some of them, but every of them has some advantages and drawbacks. I want to ask you: Which method do use? I've tried ...
2
votes
3answers
176 views

What determines which key combinations register in a Flash game?

Many times when I'm working on Flash games I'll find that a particular combination of keys held at the same time doesn't register, e.g. LEFT, DOWN and SPACEBAR. I know from my days playing Doom this ...