Click or drag to resize

PlayerGetKeys Method

Check which keys this player is pressing.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
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