MPE_Iget_mouse_press(4)

MPE_Iget_mouse_press4

Checks for mouse button press

Usage

#include "mpe.h" 
int MPE_Iget_mouse_press( graph, x, y, button, wasPressed )
MPE_XGraph graph;
int *x, *y, *button, *wasPressed;

Input parameter

graph

- MPE graphics handle

Output parameters

x

- horizontal coordinate of the point where the mouse button was pressed

y

- vertical coordinate of the point where the mouse button was pressed

button

- which button was pressed: MPE_BUTTON[1-5]

wasPressed

- 1 if the button was pressed, 0 if not

Notes

Checks if the mouse button has been pressed inside this MPE window. If pressed, returns the coordinate relative to the upper right of this MPE window and the button that was pressed.

Location

xmouse.c

Releases

7 releases since Debian 2.0 (Hamm); the text changed 2 times.

  1. 2.0–2.1
  2. 3.0
  3. 3.1–6.0

From mpi-doc 1.2.7-9.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.