Questions tagged [mouseevent]

A general tag for user-interface events that are generated by the mouse. This includes pressing/releasing a button, clicking (including double/triple-clicks), moving, dragging, etc.

This tag deals with the events that are generated by preforming actions with a Computer Mouse and similar input devices which emulate the behaviour of a mouse (such as Touchpads and Graphic Tablets).

Mouse events are usually split into several categories:

  • Button Press (Button Down) event - The event where a previously unpressed mouse button just became pressed
  • Button Release (Button Release) event - The event where a previously pressed mouse button just became unpressed
  • Button Click event - A Button Press event followed by a Button Release event. In some platforms and locations, this concept has one or more of the following limitations:
    • The Press and Release both happend while the mouse was in the same place (the mouse wasn't moved between the press and the release). Sometimes there is a lighter version of this restriction, which only forces the mouse to be above the same "user interface element" on the press and release events.
    • The Press and Release both happend inside a limited (usually short) time interval.
  • Button Double (Triple/...) Click event - Two (Three/...) click events, one after another with the same mouse button. These may also have one or more of the limitations mentioned for a single click event
  • Button Move (Motion) event - An event where the mouse is moved. Usually this refers only to the case where none of the mouse buttons was pressed (for the case where one or more buttons was in fact pressed, see the next definition).
  • Button Drag event - An event where the mouse moves while one or more of the mouse buttons is held down
  • Button (Scroll) Wheel event - In modern mice, there is usually a wheel part called scroll-wheel, which can be moved (aka rolled, scrolled) up and down. Such a movement of that part is referred to as a Mouse Wheel event.
    • In some newer alternative input devices which also serve as a mouse, sometimes there won't be any physical whell. Instead, there may be hot-spot areas and/or buttons that will emulate the movement of the wheel. For example, in many touchpads, a movement in certain areas will be interpreted as scroll event.
    • Some mice (and other devices) allow scrolling not just up and down, but also in other directions (typically, left and right).

For more information and definitions, see the Computer Mouse and it's operation on Wikipedia.

6218 questions
2
votes
1 answer

how to add mouse click events in TeeChart for .net

I am creating GUI in C# using Windows Form. To view data in graphical representation I am using licensed TeeChart for .Net v3. I want to implement mouse click events in TeeChart. I have the VB6 code for that because the GUI is created in VB6…
reddy
  • 183
  • 4
  • 15
2
votes
1 answer

Get the distance of mouse movement

I have a form and inside it I got a small Panel called Player. How can I "link" the panel to user's mouse, so it will move as the mouse moves? I've already subscribed Player_MouseMove to Player.MouseMove event but I can't figure out how much has the…
user2032433
2
votes
2 answers

Is there a way to disable mouseover on highcharts entirely?

I'm building a website that uses highcharts. When I view the site on a mobile device, touching within the graph area pops up the tooltip, which prevents scrolling. I have tried all of the following, as suggested in other SO questions, without…
DiMono
  • 3,308
  • 2
  • 19
  • 40
2
votes
1 answer

why does _.delay turn my e.type from mouseenter to mouseover

When I trigger this event with backbone.js and I try and delay the function call the event.type is changed from mouseenter to mouseover the console log shoots out "mouseenter" and the second log is "mouseover" why the conversion???…
Zuriel
  • 1,848
  • 1
  • 19
  • 32
2
votes
0 answers

Xna Events Ignore left click followed immediately by double click

I have a method that dispatches mouse events to a list of listeners. The problem is that if I just use [Obsolete] private void DispatchOld(MouseEvent e) { foreach (var listener in _listeners) { …
Michael
  • 83
  • 1
  • 1
  • 6
2
votes
1 answer

How to trigger a mouseDown:(NSEvent *) programmatically (without using the mouse)?

I am developing a Leap Motion Application where I already move the cursor with it, but I don't know how I can trigger a mouseDown:(NSEvent *) programmatically.
2
votes
2 answers

How to read mouse click event from X server

I want to log my mouse click positions. I have tried this; #include #include #include #include #include #include int working = 1; void signal_callback_handler(int signum) { …
yasar
  • 13,158
  • 28
  • 95
  • 160
2
votes
1 answer

drag & drop and mouse design patterns?

Are there any well-studied design patterns related to drag & drop and mouse gestures? Consider a canvas containing objects in a parent-child hierarchy with a certain layout. Some objects can be dragged and dropped onto other objects using the…
bright
  • 4,700
  • 1
  • 34
  • 59
2
votes
4 answers

Launch onclick/onmousedown ONLY with LMB

Well alright, I tried to search around the internet and didn't find how to do this. Everything I find is only to disable the context menu on right click. The point is : I am (Trying to) making a (simple) game. I have my scripts to move my player…
2
votes
1 answer

Intercepting mouse wheel events of a QListWidget with scrollbars

I have a QListWidget with some content and active scrollbars. I want to receive its wheel events ahead of it, so that I can do some stuff as needed. I tried implementing eventFilter and installing it on the said QListWidget, but to no avail: I only…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
2
votes
0 answers

MouseDragged and MouseMoved not fired on javafx if button has been released

I am trying to have a pan / zoom mouse manipulation of my node in javafx The behavior shall be as in CATIA V5 for those who knows it: - press the middle button, you will be "PANNING" and the view will follow your moves - keep the middle button…
2
votes
1 answer

Museclick and mousemove event in batch

I am wondering how to get the mousemove and mouseclick events in batch. Can anybody help me? Thx for advice! ...or maybe in bash...
user1849298
2
votes
0 answers

JavaFX 2: Passing mouse events through to other windows?

I created a PopUp which is draggable across the screen, like a photoshop palette independent of the main window. However, I would like the main window to react when I drag this PopUp over it, i.e. receive the mouse events from the drag. The problem…
JavaMonkey22
  • 861
  • 11
  • 20
2
votes
1 answer

Receive mouse move even cursor is outside control

I did something like scrollbar from Control. Everything is fine, but when cursor leaves control area, OnMouseMove is not received anymore. When you use standard windows scrollbar, you can use it even if mouse cursor is outside the control's…
apocalypse
  • 5,764
  • 9
  • 47
  • 95
2
votes
3 answers

d3.js : very simple mouse interaction

I wan't to do a very simple chart with mouse interaction. Example (work in progress) is on this page : http://velo70.ouvaton.org/2013/gpxvtt-un-nouveau-plugin/ The goal is : when you change the slider position, a circle have the same position on the…