what will be the SHIFT key called in OnPlayerKeyStateChange
#1

My question is same as my thread subject name.

what will be the SHIFT key called in OnPlayerKeyStateChange?
Reply
#2

KEY_JUMP => LSHIFT

https://sampwiki.blast.hk/wiki/Keys
Reply
#3

KEY_JUMP
https://sampwiki.blast.hk/wiki/Keys
Reply
#4

It could be anything depends on how the user has their keys set!
Reply
#5

.. ok thx
Reply
#6

KEY_JUMP

rep if i help
Reply
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
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".
I wonder why they yet didn't implement a detection for all keys.
Reply
#8

Quote:
Originally Posted by Capua
Посмотреть сообщение
I wonder why they yet didn't implement a detection for all keys.
Because hooking into default GTA:SA controls is easier than creating a completely new system for detecting keypresses, especially if it needs to work at the same time as the default controls for moving around in the game world.
Reply
#9

Keylogging of course.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)