06.11.2014, 17:38
My question is same as my thread subject name.
what will be the SHIFT key called in OnPlayerKeyStateChange?
what will be the SHIFT key called in OnPlayerKeyStateChange?
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".
|