C# Class NIInput, SimpleAvatar

Inheritance: MonoBehaviour
Exibir arquivo Open project: lhongzhong/SimpleAvatar Class Usage Examples

Public Properties

Property Type Description
m_axisList List
m_foldAllAxes bool
m_foldAxisElement List
m_gestureManager NIGestureManager,
m_pointsTrackingManager NIPointTrackerManager,

Public Methods

Method Description
GetAccelerationEvent ( int index ) : AccelerationEvent
GetAxis ( string name ) : float
GetAxisRaw ( string name ) : float
GetButton ( string buttonName ) : bool
GetButtonDown ( string buttonName ) : bool
GetButtonUp ( string buttonName ) : bool
GetJoystickNames ( ) : string[]
GetKey ( string buttonName ) : bool
GetKeyDown ( string buttonName ) : bool
GetKeyUp ( string buttonName ) : bool
GetMouseButton ( int button ) : bool
GetMouseButtonDown ( int button ) : bool
GetMouseButtonUp ( int button ) : bool
GetTouch ( int index ) : Touch
HasFiredSinceTime ( float lastTime, string axisName ) : bool
OnApplicationQuit ( ) : void
OnDestroy ( ) : void
RegisterCallbackForGesture ( NIGestureTracker, eventDelegate, string axisName ) : void
ResetInputAxes ( ) : void
Start ( ) : void
UnRegisterCallbackForGesture ( NIGestureTracker, eventDelegate, string axisName ) : void

Protected Methods

Method Description
CalcNumberForAxis ( NIAxis, axis, bool raw ) : float
GetAxisFromPos ( Vector3 vec, NIAxis, axis ) : float
GetAxisInternal ( string name, bool raw ) : float
NormalizeAxisPos ( float valueToCalc, float range, bool invert, float sensitivity, float deadZone ) : float
Release ( ) : void

Method Details

CalcNumberForAxis() protected method

protected CalcNumberForAxis ( NIAxis, axis, bool raw ) : float
axis NIAxis,
raw bool
return float

GetAccelerationEvent() public method

public GetAccelerationEvent ( int index ) : AccelerationEvent
index int
return UnityEngine.AccelerationEvent

GetAxis() public method

public GetAxis ( string name ) : float
name string
return float

GetAxisFromPos() protected method

protected GetAxisFromPos ( Vector3 vec, NIAxis, axis ) : float
vec Vector3
axis NIAxis,
return float

GetAxisInternal() protected method

protected GetAxisInternal ( string name, bool raw ) : float
name string
raw bool
return float

GetAxisRaw() public method

public GetAxisRaw ( string name ) : float
name string
return float

GetButton() public method

public GetButton ( string buttonName ) : bool
buttonName string
return bool

GetButtonDown() public method

public GetButtonDown ( string buttonName ) : bool
buttonName string
return bool

GetButtonUp() public method

public GetButtonUp ( string buttonName ) : bool
buttonName string
return bool

GetJoystickNames() public method

public GetJoystickNames ( ) : string[]
return string[]

GetKey() public method

public GetKey ( string buttonName ) : bool
buttonName string
return bool

GetKeyDown() public method

public GetKeyDown ( string buttonName ) : bool
buttonName string
return bool

GetKeyUp() public method

public GetKeyUp ( string buttonName ) : bool
buttonName string
return bool

GetMouseButton() public method

public GetMouseButton ( int button ) : bool
button int
return bool

GetMouseButtonDown() public method

public GetMouseButtonDown ( int button ) : bool
button int
return bool

GetMouseButtonUp() public method

public GetMouseButtonUp ( int button ) : bool
button int
return bool

GetTouch() public method

public GetTouch ( int index ) : Touch
index int
return Touch

HasFiredSinceTime() public method

public HasFiredSinceTime ( float lastTime, string axisName ) : bool
lastTime float
axisName string
return bool

NormalizeAxisPos() protected method

protected NormalizeAxisPos ( float valueToCalc, float range, bool invert, float sensitivity, float deadZone ) : float
valueToCalc float
range float
invert bool
sensitivity float
deadZone float
return float

OnApplicationQuit() public method

public OnApplicationQuit ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

RegisterCallbackForGesture() public method

public RegisterCallbackForGesture ( NIGestureTracker, eventDelegate, string axisName ) : void
eventDelegate NIGestureTracker,
axisName string
return void

Release() protected method

protected Release ( ) : void
return void

ResetInputAxes() public method

public ResetInputAxes ( ) : void
return void

Start() public method

public Start ( ) : void
return void

UnRegisterCallbackForGesture() public method

public UnRegisterCallbackForGesture ( NIGestureTracker, eventDelegate, string axisName ) : void
eventDelegate NIGestureTracker,
axisName string
return void

Property Details

m_axisList public_oe property

public List m_axisList
return List

m_foldAllAxes public_oe property

public bool m_foldAllAxes
return bool

m_foldAxisElement public_oe property

public List m_foldAxisElement
return List

m_gestureManager public_oe property

public NIGestureManager, m_gestureManager
return NIGestureManager,

m_pointsTrackingManager public_oe property

public NIPointTrackerManager, m_pointsTrackingManager
return NIPointTrackerManager,