:orphan:
# PetscDrawButton
Used to determine which button was pressed 
## Synopsis
```
typedef enum {
  PETSC_BUTTON_NONE = 0,
  PETSC_BUTTON_LEFT,
  PETSC_BUTTON_CENTER,
  PETSC_BUTTON_RIGHT,
  PETSC_BUTTON_WHEEL_UP,
  PETSC_BUTTON_WHEEL_DOWN,
  PETSC_BUTTON_LEFT_SHIFT,
  PETSC_BUTTON_CENTER_SHIFT,
  PETSC_BUTTON_RIGHT_SHIFT
} PetscDrawButton;
```

## Values

- ***`PETSC_BUTTON_NONE` -*** no button was pressed
- ***`PETSC_BUTTON_LEFT` -*** the left button
- ***`PETSC_BUTTON_CENTER` -*** the center button
- ***`PETSC_BUTTON_RIGHT` -*** the right button
- ***`PETSC_BUTTON_WHEEL_UP` -*** the wheel was moved up
- ***`PETSC_BUTTON_WHEEL_DOWN` -*** the wheel was moved down
- ***`PETSC_BUTTON_LEFT_SHIFT` -*** the left button and the shift key
- ***`PETSC_BUTTON_CENTER_SHIFT`-*** the center button and the shift key
- ***`PETSC_BUTTON_RIGHT_SHIFT` -*** the right button and the shift key





## See Also
 `PetscDrawGetMouseButton()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscdraw.h.html#PetscDrawButton">include/petscdraw.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscdraw.h)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
