C# Class UnityPlatformer.DefaultInput

Keyboard, Touch and Wii Touch use CnControls [https://www.assetstore.unity3d.com/en/#!/content/15233] to enable touch you need to uncomment '\//#define UP_USE_CN_INPUT_MANAGER' at the top of this file\n Wii controls use WiimoteApi [https://github.com/Flafla2/Unity-Wiimote] to enable wiimote support you need to uncomment '\//#define UP_USE_WII_INPUT_MANAGER' at the top of this file
Inheritance: PlatformerInput
Mostrar archivo Open project: llafuente/unity-platformer

Public Properties

Property Type Description
inputsMap List

Public Methods

Method Description
GetAxisRaw ( ) : Vector2
GetAxisRawX ( ) : float
GetAxisRawY ( ) : float
IsActionDown ( string action ) : bool
IsActionHeld ( string action ) : bool
IsActionUp ( string action ) : bool
IsDownDown ( ) : bool
IsLeftDown ( ) : bool
IsRightDown ( ) : bool
IsUpDown ( ) : bool
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
GetWiiButton ( WiiButtons btn ) : bool

Method Details

GetAxisRaw() public method

public GetAxisRaw ( ) : Vector2
return Vector2

GetAxisRawX() public method

public GetAxisRawX ( ) : float
return float

GetAxisRawY() public method

public GetAxisRawY ( ) : float
return float

IsActionDown() public method

public IsActionDown ( string action ) : bool
action string
return bool

IsActionHeld() public method

public IsActionHeld ( string action ) : bool
action string
return bool

IsActionUp() public method

public IsActionUp ( string action ) : bool
action string
return bool

IsDownDown() public method

public IsDownDown ( ) : bool
return bool

IsLeftDown() public method

public IsLeftDown ( ) : bool
return bool

IsRightDown() public method

public IsRightDown ( ) : bool
return bool

IsUpDown() public method

public IsUpDown ( ) : bool
return bool

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

inputsMap public_oe property

List of action - button/key mapping
public List inputsMap
return List