HEAD
| InputAction Class |
Namespace: Planetbase
The InputAction type exposes the following members.
| Name | Description | |
|---|---|---|
| InputAction(KeyCode) |
Creates a new InputAction from the given KeyCode.
| |
| InputAction(InputAction) |
Essentially a "cloning" constructor. Creates a new instance and sets the mKeyCode and mAxis values of the new instance to the same values as the passed argument.
| |
| InputAction(InputAxis) |
Creates a new InputAction from the given InputAxis.
|
| Name | Description | |
|---|---|---|
| axisToString |
Gets the name of a InputAxis's joystick axis name.
| |
| clear |
Clears both the KeyCode and InputAxis values by setting them to KeyCode.None and InputAxis.None, respectively.
| |
| copyFrom |
Similar to one of the constructors, except this method sets the instance's value to another instances values, rather than creating a new instance.
| |
| deserialize |
Loads a serialized InputAction object into this instance.
| |
| Equals | (Inherited from Object.) | |
| FieldGetter | (Inherited from Object.) | |
| FieldSetter | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| getAxis |
Getter method for the stored InputAxis value.
| |
| getAxis(InputAxis) |
Gets a float value that related an InputAxis object to a value Unity can use.
| |
| getDescription |
Gets the name of the InputAxis or KeyCode stored in this instance.
| |
| GetFieldInfo | (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| getKeyCode |
Getter method for the stored KeyCode value.
| |
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| getValue |
Gets the status of a key.
| |
| isValidKey |
Checks the validity of the keycode.
| |
| justUp |
Checks to see if this object uses a KeyCode object, and if the said key is up.
| |
| keycodeToString |
Transforms a KeyCode into a string.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| serialize |
Saves the object in XML format.
| |
| setAxis |
Setter method for the InputAxis value. Also sets the KeyCode value to KeyCode.None.
| |
| setKey |
Setter method for the KeyCode value. Also sets the InputAxis value to InputAxis.None.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| mAxis |
Enum that represents a given joystick axis/direction.
| |
| mKeyCode |
Unity KeyCode enum that represents a given key
|
| InputAction Class |
[Missing <summary> documentation for "T:Planetbase.InputAction"]
Namespace: Planetbase
The InputAction type exposes the following members.
| Name | Description | |
|---|---|---|
| InputAction(KeyCode) | Initializes a new instance of the InputAction class | |
| InputAction(InputAction) | Initializes a new instance of the InputAction class | |
| InputAction(InputAxis) | Initializes a new instance of the InputAction class |
| Name | Description | |
|---|---|---|
| axisToString | ||
| clear | ||
| copyFrom | ||
| deserialize | ||
| Equals | (Inherited from Object.) | |
| FieldGetter | (Inherited from Object.) | |
| FieldSetter | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| getAxis | ||
| getAxis(InputAxis) | ||
| getDescription | ||
| GetFieldInfo | (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| getKeyCode | ||
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| getValue | ||
| isValidKey | ||
| justUp | ||
| keycodeToString | ||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| serialize | ||
| setAxis | ||
| setKey | ||
| ToString | Returns a string that represents the current object. (Inherited from Object.) |