#include "petscdraw.h" PetscErrorCode PetscDrawGetMouseButton(PetscDraw draw,PetscDrawButton *button,PetscReal *x_user,PetscReal *y_user,PetscReal *x_phys,PetscReal *y_phys)Collective over PetscDraw
| draw | - the window to be used |
| button | - one of PETSC_BUTTON_LEFT, PETSC_BUTTON_CENTER, PETSC_BUTTON_RIGHT, PETSC_BUTTON_WHEEL_UP, PETSC_BUTTON_WHEEL_DOWN | |
| x_user | - horizontal user coordinate of location (user may pass in NULL). | |
| y_user | - vertical user coordinate of location (user may pass in NULL). | |
| x_phys | - horizontal window coordinate (user may pass in NULL). | |
| y_phys | - vertical window coordinate (user may pass in NULL). |