private void Form_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { // Send mousepress message MousePressMessage msg = new MousePressMessage(); msg.Button = e.Button; msg.Depressed = false; Owner.MessagePool.SendMessage(msg); }
public void OnMousePress(MousePressMessage msg) { // Is it right button? if (msg.Button == MouseButtons.Right) rotate = msg.Depressed; }