Check which keys this player is pressing.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public void GetKeys(
out Keys keys,
out int upDown,
out int leftRight
)
Parameters
- keys
- Type: SampSharp.Entities.SAMPKeys
A set of bits containing this player's key states - upDown
- Type: SystemInt32
Up or Down value, passed by reference. - leftRight
- Type: SystemInt32
Left or Right value, passed by reference.
Remarks
Only the FUNCTION of keys can be detected; not actual keys. You can not detect if the player presses space, but you
can detect if they press sprint (which can be mapped (assigned) to ANY key, but is space by default)).
See Also