Top "Mouseevent" questions

A general tag for user-interface events that are generated by the mouse.

Detecting Left and Right Mouse Events for a Canvas Game

I want to implement a canvas minesweeper game using plain javascript. I use 2D array for my grid. For the …

javascript html canvas mouseevent mouseup
Prevent mouse from leaving my form

I've attached some MouseMove and MouseClick events to my program and next up is one of these: Get "global" mouse …

c# .net mouse mouseevent mousemove
MousePressEvent in view and items in Qt

I have a custom QGraphicsView and a custom QGraphicsItem. I want the Item to handle my click if I click …

qt mouseevent mousepress
Why does middle-click not trigger 'click' in several cases?

Here's a JSFiddle of the behavior I'm seeing, relating to middle-click and the click event in Chrome and FF. 'click' …

javascript jquery google-chrome firefox mouseevent
mouse right-click contextMenuStrip doesn't show ONLY for the first time

I got this part of code, where I open contextMenuStrip in respond to mouse right-click (over dataGridView table). The problem …

c# datagridview mouseevent contextmenustrip
JavaScript: mouseenter event in JavaScript?

Is there a mouse enter event in javascript(only JavaScript, no jQuery to be used, please)? When I do this, …

javascript mouseevent mouseover mouseenter
Dispatch MouseEvent

Is there a way to dispatch MouseEvent, same as dispatchKeyEvent using the KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(listener); that happens before the …

java swing mouseevent dispatchevent
Getting shift/ctrl/alt states from a mouse event?

In my WPF App, how do I get the state of the shift, ctrl and alt keys in my mouse …

c# wpf mouseevent
Google Map's Double Click Event Propagation

This question is asked often, but never really answered well. Let's see if we can remedy it! Event Propagation Google …

javascript google-maps-api-3 event-handling mouseevent event-propagation
Print coordinates and pixel values using Mouse callback

This is the code which i tried, only the coordinate values are printed but not the pixel values. #include <…

opencv mouseevent cout mat