- Description
- is invoked when a mouse button has been pressed on a window.
Since mouse presses are usually also used to indicate requests for popup menus
(also known as context menus) on objects, you might receive two events
for a single mouse press: For example, if, on your operating system,
pressing the right mouse button indicates the request for a context menu,
then you will receive one call to mousePressed indicating
the mouse click, and another one indicating the context menu request. For
the latter, the MouseEvent::PopupTrigger member of the
event will be set to true.
|