Exemplo n.º 1
0
 /// <summary>
 /// Gets the analog.
 /// </summary>
 /// <returns>The analog.</returns>
 /// <param name="id">Identifier.</param>
 //---------------------------------------------------------------------------------------------
 public Vector2 GetAxis2D(svrControllerAxis2D axi2d)
 {
     return(currentState.analog2D != null ? currentState.analog2D [(int)axi2d] : Vector2.zero);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the analog.
 /// </summary>
 /// <returns>The analog.</returns>
 /// <param name="id">Identifier.</param>
 //---------------------------------------------------------------------------------------------
 public Vector2 GetAxis2D(svrControllerAxis2D axi2d)
 {
     return(currentState.analog2D [(int)axi2d]);
 }