aa_getmouse(3)

πŸ’– aa_getmouse β€” it's giving "where's the mouse bestie" ✨

okay so real talk, this is aa_getmouse(3) from the AA-lib crew, and it lives in the Library Functions Manual section 3 (iykyk). she's small, she's mighty, and she tells you exactly where the mouse was when the last mouse event got read. πŸ¦‹


🌸 NAME 🌸

aa_getmouse β€” Get mouse position as specified by last mouse event read by aa_getevent.

✨ SYNOPSIS ✨

#include <aalib.h>

void aa_getmouse
(
     aa_context *c,
     int *x,
     int *y,
     int *b
);

πŸŽ€ PARAMETERS πŸŽ€

  • aa_context *c β€” the AA-lib context you wanna operate on, bestie. that's the whole world she's working in. πŸ’…
  • int *x β€” used to return the X coordinate of the mouse, in characters. yes, characters, not pixels. it's giving terminal-core. πŸ‘‘
  • int *y β€” used to return the Y coordinate of the mouse, in characters. same deal, she's a char girlie. 🌸
  • int *b β€” used to return the button mask of the mouse. the values used are AA_BUTTON1, AA_BUTTON2 and AA_BUTTON3, so like, mask it and vibe check it. πŸ–±οΈ

πŸ’œ DESCRIPTION πŸ’œ

Get mouse position as specified by last mouse event read by aa_getevent. that's the whole thing, no cap β€” she's not out here polling the mouse herself, she's just reporting back what aa_getevent already heard. so if you haven't read an event, don't come for her, she has nothing new to tell you. πŸ™ˆ

🌈 SEE ALSO 🌈

the whole extended fam, periodt. go read these too or you're missing out fr fr:


and that's the whole page, bestie!! 🫢 this icon was documented by c2man aalib.h and dated 8 September 1999 β€” yes she's vintage, she's still serving, we love a legacy queen. mwah πŸ’‹