IInput Interface

Alteruna Input interface. Can be used to create a custom synced input system.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public interface IInput

Properties

AxesValues Get synced axes values by index
KeyValues Get synced button values by index
OnKeyUpdate Event for changes in key inputs. passes KeyCode and state.

Methods

AddAxis(String) Add a axis to the InputSynchronizable
AddAxis(String) Add a array of axes to the InputSynchronizable
AddKey(KeyCode) Add a key to the InputSynchronizable
AddKey(KeyCode) Add a array of keys to the InputSynchronizable
GetIndexOfAxis Get index of a registered keyCode. If the target keyCode dos not exist it returns -1
GetIndexOfKey Get index of a registered keyCode. If the target keyCode dos not exist it returns -1
TryGetIndexOfAxis Attempts to get index of a registered keyCode. If the target keyCode dos not exist, return false and index will be 0
TryGetIndexOfKey Attempts to get index of a registered keyCode. If the target keyCode dos not exist, return false and index will be 0

See Also