'\" t
.\"     Title: M
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 04/13/2022
.\"    Manual: BRL-CAD User Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "M" "nged" "04/13/2022" "BRL\-CAD" "BRL\-CAD User Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
M \- Send an \fImged\fR mouse event
.SH "SYNOPSIS"
.HP \w'\fBM\fR\ 'u
\fBM\fR {1/0} {\fIxpos\ ypos\fR}
.SH "DESCRIPTION"
.PP
Sends an
\fImged\fR
mouse (i\&.e\&., defaults to a middle mouse button) event\&. The first argument indicates whether the event should be a button press
\fI(1)\fR
or release
\fI(0)\fR\&. The
\fIxpos\fR
and
\fIypos\fR
arguments specify the mouse position in
\fImged\fR
screen coordinates between \-2047 and +2047\&. With the default bindings, an
\fImged\fR
mouse event while in the viewing mode moves the view so that the point currently at screen position (\fIxpos,ypos\fR) is repositioned to the center of the
\fImged\fR
display (compare to the center command)\&. The
\fBM\fR
command may also be used in other editing modes to simulate an
\fImged\fR
mouse event\&.
.SH "EXAMPLES"
.PP
Translate the point at specified screen coordinates to the center of the display\&.
.PP
\fBExample\ \&1.\ \&Translate the point at screen coordinates (100,100) to the center of the \fImged\fR display.\fR
.PP
mged \fBM 1 100 100\fR
.RS 4
The point at screen coordinates (100,100)is repositioned to the center of the display\&.
.RE
.SH "AUTHOR"
.PP
BRL\-CAD
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
