private static bool BindAxis2D(string gameAxisID, string gameAxisDescr, AxisInput2D inputAxis2D) { if (gameAxis2DBindings.ContainsKey(gameAxisID)) //Already bound 2D game axis { gameAxis2DBindings[gameAxisID].BindInputAxis2D(inputAxis2D); return(false); } else //New 2D game axis { gameAxis2DBindings.Add(gameAxisID, new GameAxis2D(inputAxis2D, gameAxisDescr)); return(true); } }
public void BindInputAxis2D(AxisInput2D inputAxis2D) { inputList.Add(inputAxis2D); }
public GameAxis2D(AxisInput2D inputAxis2D, string description) : this(description) { BindInputAxis2D(inputAxis2D); }