SampSharp
SampSharp
SampSharp.GameMode.Tools
KeyUtils Class
KeyUtils Methods
HasPressed Method
HasPressed Method (KeyStateChangedEventArgs, Keys)
HasPressed Method (Keys, Keys, Keys)
KeyUtils
HasPressed Method (KeyStateChangedEventArgs, Keys)
Checks if
Keys
have been pressed.
Namespace:
SampSharp.GameMode.Tools
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
static
bool
HasPressed
(
KeyStateChangedEventArgs
e
,
Keys
keys
)
Parameters
e
Type:
SampSharp.GameMode.Events
KeyStateChangedEventArgs
The
KeyStateChangedEventArgs
.
keys
Type:
SampSharp.GameMode.Definitions
Keys
The
Keys
to check for.
Return Value
Type:
Boolean
Whether the
Keys
have been pressed.
See Also
Reference
KeyUtils Class
HasPressed Overload
SampSharp.GameMode.Tools Namespace