Class GlobalInput
Inherited Members
Namespace: SonsSdk
Assembly: SonsSdk.dll
Syntax
public class GlobalInput
Constructors
GlobalInput()
Declaration
public GlobalInput()
Methods
RegisterKey(KeyCode, Action)
Register a key that will be polled every frame. The action will be invoke if the key is pressed during that frame.
Declaration
public static bool RegisterKey(KeyCode key, Action action)
Parameters
Type | Name | Description |
---|---|---|
KeyCode | key | |
Action | action |
Returns
Type | Description |
---|---|
bool | False if the key is already registered |
UnregisterKey(KeyCode)
Declaration
public static void UnregisterKey(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
KeyCode | key |