Class InputHelper
This is a helper class so that Edgar can support both the
old and the new input system in the example scenes.
You should not use this class in your own game.
Inheritance
System.Object
InputHelper
Assembly: cs.temp.dll.dll
public static class InputHelper
Methods
Declaration
public static float GetHorizontalAxis()
Returns
Type |
Description |
System.Single |
|
Declaration
public static bool GetKey(KeyCode key)
Parameters
Type |
Name |
Description |
KeyCode |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool GetKeyDown(KeyCode key)
Parameters
Type |
Name |
Description |
KeyCode |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool GetKeyUp(KeyCode key)
Parameters
Type |
Name |
Description |
KeyCode |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Vector2 GetMousePosition()
Returns
Declaration
public static float GetVerticalAxis()
Returns
Type |
Description |
System.Single |
|