Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

Strange issue with input on game engine.

$
0
0

Hello,

I am trying to make a FPS game with a second game engine project that I have been working on. However, I noticed that when I play the game, I can only press down one key at a time, whereas a normal game allows you to hold down multiple keys at the same time (like “Up" and “Left”). This one, on the other hand, only lets me press “Up”, and when I press “Left”, the character would stop moving forward, and only move to the side.

 

Here is my walking forward code:

…
#define UP 0x4800
…
 int main(void …

Viewing all articles
Browse latest Browse all 17063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>