void Mouse_ButtonEvent(object sender, OpenTK.Input.MouseButtonEventArgs e) { _MouseBtnState = 0; if (e.Button == MouseButton.Left && e.IsPressed) { _MouseBtnState |= 1; } if (e.Button == MouseButton.Right && e.IsPressed) { _MouseBtnState |= 2; } if (e.Button == MouseButton.Middle && e.IsPressed) { _MouseBtnState |= 4; } Input.MouseEvent(_MouseBtnState); }
void Mouse_Move(object sender, OpenTK.Input.MouseMoveEventArgs e) { Input.MouseEvent(_MouseBtnState); }