mav_mouseGet - Sample the current mouse position.

[ Maverik Level 1 functions ]

#

mav_mouseGet

## Summary

Sample the current mouse position.

## Syntax

void mav_mouseGet(MAV_window *w, int *x, int *y, int *rx, int *ry);

- MAV_window *w
  Window.

- int *x, int *y
  (x, y) position of mouse relative to window origin (pixels).

- int *rx, int *ry
  (x, y) position of mouse relative to root window origin (pixels).

## Description

This function returns the current mouse position in window `w` (`x`,`y`), and with respect to the root (background) window (`rx`,`ry`).

Back to the index page.