Exemple #1
0
 private void graphicsControl_MouseUp(object sender, MouseEventArgs e)
 {
     if (this.activeState.EngineUserInput)
     {
         MouseButton inputButton = e.Button.ToDualitySingle();
         this.inputMouseButtons &= ~e.Button.ToDuality();
     }
 }
Exemple #2
0
 private void graphicsControl_MouseDown(object sender, MouseEventArgs e)
 {
     this.inputMouseCapture = true;
     if (this.activeState.EngineUserInput)
     {
         MouseButton inputButton = e.Button.ToDualitySingle();
         this.inputMouseButtons |= e.Button.ToDuality();
     }
 }
Exemple #3
0
		bool IMouseInputSource.this[MouseButton btn]
		{
			get { return (this.inputMouseButtons & (1 << (int)btn)) != 0; }
		}
Exemple #4
0
 bool IMouseInputSource.this[MouseButton btn]
 {
     get { return((this.inputMouseButtons & (1 << (int)btn)) != 0); }
 }