Interface IInputSystem
Generic input system interface. Just barely good enough for hotkeys.
Namespace: BepInEx
Assembly: BepInEx.dll
Syntax
public interface IInputSystem
Properties
Declaration
bool anyKey { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Declaration
bool anyKeyDown { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Declaration
Vector3 mousePosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Declaration
bool mousePresent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Declaration
Vector2 mouseScrollDelta { get; }
Property Value
Type | Description |
---|---|
Vector2 |
All KeyCodes supported by the current input system.
Declaration
IEnumerable<KeyCode> SupportedKeyCodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<KeyCode> |
Methods
Declaration
bool GetKey(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode |
key |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetKey(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String |
name |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetKeyDown(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode |
key |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetKeyDown(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String |
name |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetKeyUp(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode |
key |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetKeyUp(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String |
name |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetMouseButton(int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 |
button |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetMouseButtonDown(int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 |
button |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
bool GetMouseButtonUp(int button)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 |
button |
Returns
Type | Description |
---|---|
System.Boolean |
Declaration
void ResetInputAxes()