Exemplo n.º 1
0
 static public Vector2 GetKeyStick(KeyCode up, KeyCode left, KeyCode down, KeyCode right)
 {
     return(new Vector2(
                InputExtensions.GetKeyAxis(left, right),
                InputExtensions.GetKeyAxis(down, up)
                ).BindMagnitudeBelow(1.0f));
 }
Exemplo n.º 2
0
 static public Vector2 GetWASD2()
 {
     return(InputExtensions.GetKeyStick(
                KeyCode.W,
                KeyCode.A,
                KeyCode.S,
                KeyCode.D
                ));
 }
Exemplo n.º 3
0
 static public Vector2 GetArrows2()
 {
     return(InputExtensions.GetKeyStick(
                KeyCode.UpArrow,
                KeyCode.LeftArrow,
                KeyCode.DownArrow,
                KeyCode.RightArrow
                ));
 }