M(nged)

Send an mged mouse event

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… M(nged) β€” the send-an-mged-mouse-event page πŸ–±οΈβœ¨

okay bestie, welcome to the M page from the BRL-CAD User Commands manual β€” she's short, she's sweet, and she literally moves your view around, no cap πŸŽ€


✨ NAME ✨

M β€” send an mged mouse event πŸ–±οΈπŸ’–


🌸 SYNOPSIS 🌸

M {1/0} {xpos ypos}

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: M sends an mged mouse event β€” and yes, it defaults to a middle mouse button event, iykyk πŸ–±οΈβœ¨

The first argument tells it whether the event should be a button press (1) or a release (0). Super simple, she's not complicated πŸ’…

Then xpos and ypos are the mouse position in mged screen coordinates, and they live between -2047 and +2047 β€” that's the whole range, don't try to be extra 🫢

With the default bindings, an mged mouse event while you're in viewing mode moves the view so that the point currently sitting at screen position (xpos,ypos) gets repositioned to the center of the mged display β€” literally compare it to the center command, they're besties πŸ‘‘

And the plot twist? M can also be used in other editing modes to simulate an mged mouse event. versatile icon behavior, honestly 🌈


πŸ’– EXAMPLES πŸ’–

Translate the point at specified screen coordinates to the center of the display. periodt.

Example 1. Translate the point at screen coordinates (100,100) to the center of the mged display.

mged> M 1 100 100

and the result, bestie:

The point at screen coordinates (100,100)is repositioned to the
center of the display.

(yes the original is missing a space there, I'm not gonna gaslight you, that's just how she's written πŸ˜­πŸ’€)


πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD 🫢


πŸ› BUG REPORTS πŸ›

Found something cursed? Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§ β€” they're literally waiting, don't be shy 🌸


and that's the whole page, bestie, we ate and left zero crumbs πŸ“βœ¨ this was BRL-CAD's BRL-CAD User Commands manual, page M(nged) β€” and ngl there's no date on this one, so we're just gonna have to vibe check it into the void πŸ’€πŸŽ€ see you in the next manpage πŸ‘‹πŸ’œ

πŸ“¦ where this page comes from