Example #1
0
 public KeyboardKeys( OverlapBehavior overlapBehavior, Keys negative, Keys positive )
 {
     this.overlapBehavior = overlapBehavior;
     this.negative = negative;
     this.positive = positive;
 }
Example #2
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;
		}
Example #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;
 }
Example #4
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;
		}