
This virtual function is called when a user presses a mouse button while the mouse pointer is inside the window. The function's button parameter provides a platform independent code of the mouse button that was pressed, while the x and y parameters provide the (x, y) coordinates of the mouse pointer at that moment. Your application can override this function in your own class in order to process this event.
| Parameter | Description |
|---|---|
|
button |
Platform independent code of the mouse button that was pressed.
|
|
x |
x coordinate of the mouse pointer when the mouse button was pressed, in pixels and relative to the origin of the window. |
|
y |
y coordinate of the mouse pointer when the mouse button was pressed, in pixels and relative to the origin of the window. |
