Class Input
Class that handles various types of user input
Assembly: SlipeClient.dll
public static class Input
Methods
|
Improve this Doc
View Source
Declaration
public static bool BindKey(string key, KeyState state, Action<string, KeyState> handler)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool BindKey(string key, KeyState state, string command)
Parameters
Returns
|
Improve this Doc
View Source
Gets analog control state
Declaration
public static float GetAnalogControlState(string control)
Parameters
Type |
Name |
Description |
String |
control |
|
Returns
|
Improve this Doc
View Source
Gets whether a control is currently enabled
Declaration
public static bool IsControlEnabled(string control)
Parameters
Type |
Name |
Description |
String |
control |
|
Returns
|
Improve this Doc
View Source
Returns current state of a key
Declaration
public static bool IsKeyPressed(string keyName)
Parameters
Type |
Name |
Description |
String |
keyName |
|
Returns
|
Improve this Doc
View Source
This method gets the player's keyboard layout settings, which they are currently (keyboard layout can be changed at any moment) using at the time of invocation.
Declaration
public static string KeyboardReadingLayout()
Returns
Type |
Description |
String |
A string "ltr", "rtl", "ttb-rtl-ltr" or "ttb-ltr"
|
|
Improve this Doc
View Source
Enables / disables all controls
Declaration
public static bool SetAllControlsEnabled(bool value, bool mtaControls = true, bool gtaControls = false)
Parameters
Returns
|
Improve this Doc
View Source
Sets analog control state
Declaration
public static bool SetAnalogControlState(string control, float value)
Parameters
Returns
|
Improve this Doc
View Source
Enables / disabled a control
Declaration
public static bool SetControlEnabled(string control, bool value)
Parameters
Returns
|
Improve this Doc
View Source
Unbinds a key from a method
Declaration
public static bool UnbindKey(string key, KeyState state, Action<string, KeyState> handler)
Parameters
Returns
|
Improve this Doc
View Source
Unbinds a key from a command
Declaration
public static bool UnbindKey(string key, KeyState state, string command = null)
Parameters
Returns
Events
|
Improve this Doc
View Source
Declaration
public static event Input.OnCharacterHandler OnCharacter
Event Type
|
Improve this Doc
View Source
Declaration
public static event Input.OnKeyHandler OnKey
Event Type