06.11.2014, 20:11
Quote:
To elabolrate on what Pottus said: you can't detect a specific keyboard key. "shift", "space", "e" etc are not sent to the server, only the functions that they may or may not trigger. For example, I always map "jump" to "right-mouse", so when your server receives "KEY_JUMP" you have no way of knowing what physical input the user used, only what action they performed. They jumped - they didn't press "space".
|