public KeyboardKeys(OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down)
 {
     this.overlapBehavior = overlapBehavior;
     this.left            = left;
     this.right           = right;
     this.up   = up;
     this.down = down;
 }
Exemple #2
0
 public KeyboardKeys(OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down)
 {
     OverlapBehavior = overlapBehavior;
     Left            = left;
     Right           = right;
     Up   = up;
     Down = down;
 }
Exemple #3
0
 public KeyboardKeys(OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down)
 {
     this.OverlapBehavior = overlapBehavior;
     this.Left            = left;
     this.Right           = right;
     this.Up   = up;
     this.Down = down;
 }
 /// <summary>
 /// adds keyboard keys input to this VirtualJoystick. Four keyboard keys will emulate left/right/up/down. For example WASD or the arrow
 /// keys.
 /// </summary>
 /// <returns>The keyboard keys.</returns>
 /// <param name="overlapBehavior">Overlap behavior.</param>
 /// <param name="left">Left.</param>
 /// <param name="right">Right.</param>
 /// <param name="up">Up.</param>
 /// <param name="down">Down.</param>
 public VirtualJoystick addKeyboardKeys(
     OverlapBehavior overlapBehavior,
     Keys left,
     Keys right,
     Keys up,
     Keys down)
 {
     nodes.Add(new KeyboardKeys(overlapBehavior, left, right, up, down));
     return(this);
 }
 /// <summary>
 /// adds keyboard Keys to emulate left/right or up/down to this VirtualInput
 /// </summary>
 /// <returns>The keyboard keys.</returns>
 /// <param name="overlapBehavior">Overlap behavior.</param>
 /// <param name="negative">Negative.</param>
 /// <param name="positive">Positive.</param>
 public VirtualIntegerAxis AddKeyboardKeys(OverlapBehavior overlapBehavior, Keys negative, Keys positive)
 {
     Nodes.Add(new VirtualAxis.KeyboardKeys(overlapBehavior, negative, positive));
     return(this);
 }
Exemple #6
0
 protected VirtualInput(OverlapBehavior overlap)
 {
     this.Overlap = overlap;
 }
Exemple #7
0
 public VirtualAxis(OverlapBehavior overlap, params Node[] nodes)
     : base(overlap)
 {
     this.Nodes.AddRange(nodes);
 }
Exemple #8
0
 public VirtualAxis(OverlapBehavior overlap)
     : base(overlap)
 {
 }
Exemple #9
0
 public KeyboardKeys(OverlapBehavior overlapBehavior, Keys negative, Keys positive)
 {
     OverlapBehavior = overlapBehavior;
     Negative        = negative;
     Positive        = positive;
 }
Exemple #10
0
 public VirtualJoystick(OverlapBehavior overlapBehavior, bool normalized, params Node[] nodes)
     : base(overlapBehavior)
 {
     this.Normalized = normalized;
     this.Nodes.AddRange(nodes);
 }
Exemple #11
0
 public VirtualButton(OverlapBehavior overlapBehavior, params Node[] nodes)
     : base(overlapBehavior)
 {
     this.Nodes.AddRange(nodes);
 }
Exemple #12
0
 public KeyboardKeys( OverlapBehavior overlapBehavior, Keys negative, Keys positive )
 {
     this.overlapBehavior = overlapBehavior;
     this.negative = negative;
     this.positive = positive;
 }
Exemple #13
0
 public KeyboardKeys( OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down )
 {
     this.overlapBehavior = overlapBehavior;
     this.left = left;
     this.right = right;
     this.up = up;
     this.down = down;
 }
Exemple #14
0
		/// <summary>
		/// adds keyboard Keys to emulate left/right or up/down to this VirtualInput
		/// </summary>
		/// <returns>The keyboard keys.</returns>
		/// <param name="overlapBehavior">Overlap behavior.</param>
		/// <param name="negative">Negative.</param>
		/// <param name="positive">Positive.</param>
		public VirtualIntegerAxis addKeyboardKeys( OverlapBehavior overlapBehavior, Keys negative, Keys positive )
		{
			nodes.Add( new VirtualAxis.KeyboardKeys( overlapBehavior, negative, positive ) );
			return this;
		}
Exemple #15
0
		/// <summary>
		/// adds keyboard keys input to this VirtualJoystick. Four keyboard keys will emulate left/right/up/down. For example WASD or the arrow
		/// keys.
		/// </summary>
		/// <returns>The keyboard keys.</returns>
		/// <param name="overlapBehavior">Overlap behavior.</param>
		/// <param name="left">Left.</param>
		/// <param name="right">Right.</param>
		/// <param name="up">Up.</param>
		/// <param name="down">Down.</param>
		public VirtualJoystick addKeyboardKeys( OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down )
		{
			nodes.Add( new KeyboardKeys( overlapBehavior, left, right, up, down ) );
			return this;
		}
Exemple #16
0
 public KeyboardKeys(OverlapBehavior overlapBehavior, Keys negative, Keys positive)
 {
     this.overlapBehavior = overlapBehavior;
     this.negative        = negative;
     this.positive        = positive;
 }
Exemple #17
0
 public VirtualJoystick(OverlapBehavior overlapBehavior, bool normalized)
     : base(overlapBehavior)
 {
     this.Normalized = normalized;
 }
Exemple #18
0
 public VirtualButton(OverlapBehavior overlapBehavior)
     : base(overlapBehavior)
 {
 }
 public VirtualIntegerAxis(OverlapBehavior overlap)
     : base(overlap)
 {
 }