Interaction from the player that corresponds to action in the game. Or in simpler terms - pushing buttons!
0
votes
1answer
60 views
How to handle simultaneous mouse and keyboard input with sdl?
I'm making a game in SDL2 that so far is basically just a top down shooter, where the player aims at the mouse. When I run the game, you can move properly and shoot properly, and shoot and move the ...
0
votes
2answers
107 views
How can I make my sprite jump up and move forward at the same time?
I'm trying to make a sprite's movements work. For some reason, he can only jump and then move, or move and then jump, but never at the same time. I'm using InputProcessor and a TiledMap system. ...
1
vote
0answers
76 views
Handling XBox 360 Controller Connections in LibGDX after Game has Started
I am currently making a game with the java library LibGDX and want to add XBox 360 controller support using the GDX-Controllers extension. At the moment I have a setup where I create a listener to ...
1
vote
2answers
105 views
Can I trigger input/controls via code?
I have the 3rd person controller in my game, which moves with the WASD keys.
But since I am developing for a mobile release, I want touch controls.
I have already the touch control-script in a new ...
0
votes
2answers
60 views
How can I access LWJGL's Keyboard from a thread other than the graphics thread?
I'm loving LWJGL, but have been running into a number of odd problems with it. Most of it seems to deal with the fact that OpenGL is a state-machine and was only ever meant to be accessed from a ...
2
votes
2answers
85 views
How do I smooth out of the effects of a too-sensitive control?
I have a game that takes input from a joystick. If you tilt the joystick right, the ship moves right linearly according to how much the joystick is tilted. So if you tilt the joystick twice as much ...
0
votes
1answer
70 views
LWJGL: Camera distance from image plane?
Let me paste some code before I ask the question...
public static void createWindow(int[] args) {
try {
Display.setFullscreen(false);
DisplayMode d[] = ...
0
votes
1answer
127 views
How to manage input state in Unity3D?
In Unity3D how do I manage input among many components, especially in relation to "blocking" input messages to certain components?
To make my question clear, an example:
Component 1: Input Manager
...
0
votes
0answers
116 views
Recommended main loop style [closed]
I've just begun attempting an FPS with JMonkeyEngine, but I'm currently stuck as to the best way to implement the main loop - especially with regards to non-instantaneous user actions. By that, I mean ...
1
vote
0answers
63 views
The input doesn't recognize that I release the key? [closed]
I'm creating a window (JOptionPane), in response to a collision. However, if the player is holding a key down when the window pops up, the input doesn't trigger a key release when the key is released.
...
1
vote
2answers
123 views
Input of mouseclick not always registered in XNA Update method
I have a problem that not all inputs of my mouse events seem to be registered.
The update logic is checking a 2 dimensional array of 10x10 .
It's logic for a jewel matching game.
So when i switch my ...
1
vote
1answer
97 views
Brief pause after keypress
After i press and hold the key it goes forward once then pauses for a second or less then goes forward on forever. My problem is the brief pause I cant locate the issue. Thanks for your help.
...
1
vote
1answer
47 views
All libGDX input statements are returning TRUE at once
I'm fooling around with Box2D and libGDX and running into a peculiar problem with polling for input. Here's the code for the Screen's render() loop:
@Override
public void render(float delta) {
...
0
votes
1answer
69 views
What input and window handler should I learn for complement OpenGL? [closed]
I have a good base in C++ programming and I did some 2D games using SDL. Now I want to start making 3D games, but as much as posible, I want to learn following the standars of the profesional ...
2
votes
3answers
189 views
What are reasons for input polling vs. input events?
I noticed people use both - but is there any empirical evidence when it's better to use one over the other?
This is related but not quite a 'why use either' or even 'why use both': Polling vs event ...
0
votes
2answers
248 views
Detecting key press only once [duplicate]
Have a question on keyboard inputs. Currently I am using this method to read my input, Gdx.input.isKeyPressed(Input.Keys.A), it is working fine. But I do realized at times there are multiple instances ...
1
vote
1answer
265 views
How to implement input handling in a C game engine?
I am starting to learn C programming (though I have a lot of experience using higher-level languages). I want to write a game engine using C and OpenGL. I think I understand the graphics rendering ...
2
votes
1answer
130 views
When do you get Mouse.getstate().X or Y as negative?
I am creating a game in which I use a function:
int x()
{
int px = 100;
int pxend = 128;
int xx = 0;
for (int i = 0; i < 6; i++)
...
0
votes
0answers
11 views
Grab mouse input in OpenTK? [duplicate]
I've searched a lot on the Internet but I can't seem to find any code that works with the current OpenTK, that "grabs" the mouse input (just gives the delta-x and delta-y, for camera rotation for ...
1
vote
1answer
294 views
Entity Component Systems, Input, and Angry Birds!
I am using Artemis ECS. I have the very basics of a game already. I am now trying to determine how to gracefully handle input and to a lesser extent collisions. Some people say with ECSs, everything ...
4
votes
2answers
116 views
Asking the user to place the joystick in the center while calibrating
I would like to know why exactly calibration programs (usually?) ask the user to place the joystick in middle, that is: Why isn't moving the handle in a complete circle (usually?) enough to calibrate ...
1
vote
1answer
117 views
LWJGL Wait for key press in a single method
Currently I am implementing the possibility in my game to change the keyboard configuration.
Therefor, I have a menu in which is a button for each action the player can do. If the player clicks on one ...
0
votes
1answer
117 views
Input events slow on unity Update function
I have this running on the Update() on Unity. I am trying to create a page swipe feature on my game, but the problem is there is a half second delay when printing "dragging" to "end drag" when I ...
1
vote
1answer
364 views
Registering InputListener in libGDX
I'm just getting started with libGDX and have run into a snag registering an InputListener for a button. I've gone through many examples and this code appears correct to me but the associated callback ...
0
votes
1answer
222 views
Design question: How to handle input more efficiently?
I'm designing a system to handle the keyboard input for my game. To get it more simple, I have a class that has two methods, KeyUp and KeyDown which tell me which key has been pressed, this is already ...
1
vote
1answer
92 views
Getting mousemovement despite mouselock - unity
I have lockcursor so the cursor doesn't leave the screen, but now i have to rotate an object based on mouse movement (think garrys mod item rotation) but the mouse cursor is obviusly locked to the ...
0
votes
2answers
124 views
How do you capture keyboard and mouse input for an HTML5 game?
Is there an accepted method for capturing player input in HTML5 games? I have seen several methods, and the browsers seem to be in varying states of implementation; On MDN they tell you not to use ...
1
vote
2answers
263 views
What is an acceptable input delay?
It is common knowledge that if the framerate of a game is over 25-30 fps, we humans perceive it as running smoothly (more is better but if it is above that it at least doesn't lag).
Is there any ...
7
votes
2answers
927 views
Input management techniques in large games
Is there a standard technique for managing input in large games. Currently, in my project, all input handling is done in the game loop, like so:
while(SDL_PollEvent(&event)){
...
2
votes
3answers
208 views
How can we validate subjective inputs from a client?
Let's propose for a minute where we have a game using something like the Virtuix Omni. You track feet movement. You track the speed at which they run. Now, let's suppose we want to translate this into ...
0
votes
2answers
153 views
Gravity and collision detection interfering with player movement
I am attempting to implement collision detection for a 2d sidescroller game and I'm having trouble keeping gravity from interfering with player movement.
Every frame I get and handle input, creating ...
1
vote
2answers
445 views
Entity system game design and input handler
I have started create a lightweight game engine with Ogre and C++. I have a abstract component class and an abstract entity class.
#ifndef ENTITY_HPP_
#define ENTITY_HPP_
#include <string>
...
2
votes
2answers
438 views
LWJGL multiple keyboard/mouse input checks
As in many game libraries such as LWJGL, you can check mouse/keyboard events with Mouse.isButtonDown or Keyboard.IsKeyDown.
I want to check for button/key presses, not if it's currently pressed down ...
4
votes
2answers
181 views
Manage user input and diffentiate it between the player and the app
I hope the title makes sense. Basically, I am trying to figure out how the app will know I the input I am sending it is meant for the app and not the player, and vice-versa.
(It is very similar to ...
3
votes
1answer
149 views
Handling actions in component based multiplayer game
Please stay with me as I explain my question.
I'm creating a multiplayer game. My design pattern follows broadly thoughts described in the post here.
The idea is that each actor whether be it a ...
-1
votes
1answer
563 views
How can I support PS3 controllers in my Java game?
Is there a lightweight open source library that would allow me to get PS3 controller input and use it in a program (for OS X and Windows) that I am writing in Java? The alternatives I were looking at ...
3
votes
4answers
259 views
Networking gampeplay - Sending controller inputs vs. sending game actions
I'm reading about techniques for implementing game networking.
Some of the resources i've read state that it is a common practice (at least for some games) to send the actual controller input across ...
0
votes
1answer
173 views
Input events not working simultaneously on android devices in libgdx
I am making a simple platform game in Libgdx... in which I have made the player to move left, move right and jump. The code works fine on Desktop but on Android devices, Jump is not fired when the ...
-1
votes
1answer
90 views
Input rendering
Suppose I have a simple game model (designed with MVC pattern):
There is a World, there is a WorldRenderer and there is a GameController.
Now, World is a model of the world, i.e. game state. ...
0
votes
1answer
521 views
libgdx keyboard input
I'm trying to figure it out how to check if keyboard key was released. I tried messing around with InputMultiplexer, InputProcessor, etc. Nothing helped. Not enough documentation from lib developers ...
5
votes
1answer
1k views
How do I read input from multiple keyboards/mice on one computer?
I want to be able to read inputs from multiple keyboards and still differentiate them. It's for split-screen. I know it's possible, because Serious Sam 3 allows it.
Edit : Well a whole lot of my ...
0
votes
0answers
49 views
Move towards fails Slick2d
Vector2f move = new Vector2f(0, 0);
float mAngle = (float) Math.atan2(target.getY() - position.getY(), target.getX() - position.getX());
move.x = (float) Math.cos(mAngle) * speed;
...
0
votes
0answers
56 views
Time on touch events?
Whats the best way to have a touch even cause an action for a specific period of time or deltaTime?
It seems like it should be simple, but I have tried while and for loops based on int counts for ...
1
vote
2answers
141 views
Correct way/How to think to plan out “control/animation flow”?
So basically, a problem I've had in past attempt at making games (little playing around with stuff): how to do a correct, non-sloppy way of planning the flow of animations/control?
Let's take an ...
1
vote
1answer
63 views
Which key bindings to use for switchable primary and secondary attacks?
I am making a game in which the player can have a primary and secondary weapon (like an ability). These are my current planned key bindings:
Action | Effect
-----------------
Click | Shoot primary ...
1
vote
0answers
152 views
Why is my XInput gamepad press stamp not working?
I'm trying to add basic gamepad input to my c++ DirectX game but i'm having some trouble creating a press stamp (registers the press only the first time it's pressed if button held down).
The entire ...
1
vote
1answer
136 views
How to check default axis orientation on device?
I am developing a game which uses the accelerometer to move the character. It works fine on all the mobile phones tested on.
However when testing on a tablet, it seems the y and x axis are reversed I ...
2
votes
4answers
729 views
RPG movement holding down button
I've been writing a simple top down mini RPG in python.
My problem is that when I move the player I have to repeatedly tap the arrow key. Each time I tap the key the player moves 5 PX in the ...
0
votes
1answer
177 views
How to prevent the player from clicking too fast [closed]
I'm having trouble with some bullets in my game, the M1911, which is supposed to be semi-auto is only capable of shooting one projectile per mouse click (trying to learn how to do multiple ones at ...
0
votes
1answer
126 views
Client send rate for network games
As I understand for a client server model, it's common practise to send input to the server and then the server applies the input to update the state of the game. The server then sends updates to ...