weimingtom / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

InputManager get multiple keyup events simultaniously #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In order to catch 2 keyup events simultaniously the user has to release both 
keys really exactly at the same time.
Which is almost impossible

some kind of delay, buffer, interval or whatever would be nice
in order to throw messages which are 0.02f apart simultaniously

Angel 3.0.1
Win 7
DW

(i have an 8 directional character movement
and when i stop moving diagonally i want the char to stand diagonally
which almost never happens)

Original issue reported on code.google.com by maliusa...@gmail.com on 27 Nov 2012 at 9:21

GoogleCodeExporter commented 8 years ago
This is pretty specific game functionality that is probably best handled in 
your game rather than the engine itself. Basically you just want to have some 
latency in the code that handles your character's facing -- wait a certain 
amount of time from receiving the keyup event before actually resolving the 
direction. 

Original comment by lieseg...@gmail.com on 27 Nov 2012 at 10:24