Interface IInputSystem

Generic input system interface. Just barely good enough for hotkeys.

Namespace: BepInEx
Assembly: BepInEx.Unity.Mono.dll
Syntax
public interface IInputSystem

Properties

anyKey

Declaration
bool anyKey { get; }
Property Value
Type Description
System.Boolean

anyKeyDown

Declaration
bool anyKeyDown { get; }
Property Value
Type Description
System.Boolean

mousePosition

Declaration
Vector3 mousePosition { get; }
Property Value
Type Description
Vector3

mousePresent

Declaration
bool mousePresent { get; }
Property Value
Type Description
System.Boolean

mouseScrollDelta

Declaration
Vector2 mouseScrollDelta { get; }
Property Value
Type Description
Vector2

SupportedKeyCodes

All KeyCodes supported by the current input system.

Declaration
IEnumerable<KeyCode> SupportedKeyCodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<KeyCode>

Methods

GetKey(KeyCode)

Declaration
bool GetKey(KeyCode key)
Parameters
Type Name Description
KeyCode key
Returns
Type Description
System.Boolean

GetKey(String)

Declaration
bool GetKey(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Boolean

GetKeyDown(KeyCode)

Declaration
bool GetKeyDown(KeyCode key)
Parameters
Type Name Description
KeyCode key
Returns
Type Description
System.Boolean

GetKeyDown(String)

Declaration
bool GetKeyDown(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Boolean

GetKeyUp(KeyCode)

Declaration
bool GetKeyUp(KeyCode key)
Parameters
Type Name Description
KeyCode key
Returns
Type Description
System.Boolean

GetKeyUp(String)

Declaration
bool GetKeyUp(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Boolean

GetMouseButton(Int32)

Declaration
bool GetMouseButton(int button)
Parameters
Type Name Description
System.Int32 button
Returns
Type Description
System.Boolean

GetMouseButtonDown(Int32)

Declaration
bool GetMouseButtonDown(int button)
Parameters
Type Name Description
System.Int32 button
Returns
Type Description
System.Boolean

GetMouseButtonUp(Int32)

Declaration
bool GetMouseButtonUp(int button)
Parameters
Type Name Description
System.Int32 button
Returns
Type Description
System.Boolean

ResetInputAxes()

Declaration
void ResetInputAxes()