示例#1
0
 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);
     }
 }
示例#2
0
 public void BindInputAxis2D(AxisInput2D inputAxis2D)
 {
     inputList.Add(inputAxis2D);
 }
示例#3
0
 public GameAxis2D(AxisInput2D inputAxis2D, string description) : this(description)
 {
     BindInputAxis2D(inputAxis2D);
 }