private void graphicsControl_MouseUp(object sender, MouseEventArgs e) { if (this.activeState.EngineUserInput) { MouseButton inputButton = e.Button.ToDualitySingle(); this.inputMouseButtons &= ~e.Button.ToDuality(); } }
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(); } }
bool IMouseInputSource.this[MouseButton btn] { get { return (this.inputMouseButtons & (1 << (int)btn)) != 0; } }
bool IMouseInputSource.this[MouseButton btn] { get { return((this.inputMouseButtons & (1 << (int)btn)) != 0); } }