Show / Hide Table of Contents

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
Namespace: Edgar.Unity.Examples
Assembly: cs.temp.dll.dll
Syntax
public static class InputHelper

Methods

GetHorizontalAxis()

Declaration
public static float GetHorizontalAxis()
Returns
Type Description
System.Single

GetKey(KeyCode)

Declaration
public static bool GetKey(KeyCode key)
Parameters
Type Name Description
KeyCode key
Returns
Type Description
System.Boolean

GetKeyDown(KeyCode)

Declaration
public static bool GetKeyDown(KeyCode key)
Parameters
Type Name Description
KeyCode key
Returns
Type Description
System.Boolean

GetKeyUp(KeyCode)

Declaration
public static bool GetKeyUp(KeyCode key)
Parameters
Type Name Description
KeyCode key
Returns
Type Description
System.Boolean

GetMousePosition()

Declaration
public static Vector2 GetMousePosition()
Returns
Type Description
Vector2

GetVerticalAxis()

Declaration
public static float GetVerticalAxis()
Returns
Type Description
System.Single
In This Article
Back to top Generated by DocFX