Hello,
I am programming an FPS (First Person Shooter) game using "Gtkmm" as a window manager and I would like to do the "mouse-look". Therefore, I have to "grab" the mouse pointer to redirect all the mouse motion events to my application window.
There seems to be three overloaded functions to do that job and I have chosen the simplest o...
Hello
i have this HTML page
<html>
<body>
<div>a</div>
<div>b</div>
<div>c</div>
<div>d</div>
<div id='in_or_out'>e</div>
<div>f</div>
</body>
</html>
a,b,c,d,e and f could be divs also not just a plain text.
I want to get the mouse click event, but how could i know if it's inside or outside #in_or_out div ?
EDIT :: guys, i know h...
this is related to: a previous question
BUT the question is my code only fails when i move the mouse really really fast over and around the TableLayoutPanel.
is it possible that C# or windows are reporting/triggering events out of order due to the fast mouse movement?
if so, how do i correct it?
thank you. i hope this is not consider...
Hello,
I've got a mouse with scroll and a keyboard with scroll. Both devices are connected using USB, both scrolls send the same event ("mouse button 4/5 press/release"). I'd like to map up/down arrow keys to the keyboard scroll, but not the mouse scroll.
Any ideas of how to do this programatically? I think I have to do this at the X s...
I am implementing the system menu (Restore, Move, Size...) on a borderless window and I want the mouse cursor to move to the center of the Window when size or move is selected. Ideally in VB but C# is fine as well.
...
I've been playing a simple online game where the only thing the user controls is the acceleration of a car. The car goes around the same track every time.
The track has like 6-7 curves, and one lap only takes a few seconds, maybe five. With the left-click of a mouse the car accelerates, releasing it to slow down. If you hit a curve whil...
OK, I've figured out how to get my Grid of UI elements to zoom, by using LayoutTransform and ScaleTransform. What I don't understand is how I can get my View to respond to CTRL+MouseWheelUp\Down to do it, and how to fit the code into the MVVM pattern.
My first idea was to store the ZoomFactor as a property, and bind to a command to adj...
How to determine if selection is made programmatically or by user input.
I started to write something but since there is more work I decided to seek for some out-the-box procedure or rely on the community experience.
So here is what I wrote (Note that answers in C# are welcommed too):
Private Shared Function IsUserSelect() As Boolean
...
In my Win32 app, I don't get WM_MOUSELEAVE messages when I hold down the left mouse button and quickly move the mouse pointer out of the window. But If I, holding down the left mouse button, start from the inside of the window and move slowly past the window edge, it'll generate a WM_MOUSELEAVE.
If I don't hold the left mouse button, I...
Using the jQuery mouse events for mouseenter, mouseleave or hover all work swimmingly on all Mac or Windows browsers except for IE8/Windows.
I am using mouseenter and mouseleave to test for hot rectangles (absolutely positioned and dimensioned divs that have no content) over an image used as hotspots to make visible the navigation butto...
In following code, mouseDragged is not recognized. What do I do wrong?
addMouseListener(new MouseInputAdapter() {
@Override
public void mouseDragged(MouseEvent e) { ... }
@Override
public void mousePressed(MouseEvent e) { ... }
});
...
I'm building a simple white board app in ActionScript 3. Most white board or painting apps in ActionScript tend to use an interval, timer, mouseMove event, or enterFrame event to track the mouse position and paint lines or brushes in between the tracked points.
What I'm trying to achieve is the nice smooth painted line that a program l...
i want to put this image on a map, so i want:
- click a button and make a new image
- move the image with the mouse and when click the image must be on the jpanel and not move anymore.
...
Hey...
I'm in way over my head and looking for a broader understanding of what it would take to feed alternate data into a mouse driver to control the pointer without moving the mouse.
I have modified a driver (untested) to provide random data, but I need to be able to turn on/off the random mouse data and I don't think a simple scanf ...
I'm currently using the ShowCursor API call to hide a cursor for an application after a set period of inactivity. This works fine, except that the cursor is hidden over both the menus and status bar (which I don't want). I'm also using a Form_MouseMove to switch the cursor back on, but this doesn't work over the menus or status bar.
I...
Hi,
I need to send mouse signals in C# so that other applications register them. To be exact, I need to simulate mouse buttons and the move of the mouse. Is there a way to do this in C#? (Windows)
...
I want to use mouse from a boot loader, but the int33h is not working, (DOS interrupt, and there is no DOS booting),so can you help me, how can I read the mouse position, status, etc without using int33h?
Thanks
...
Hello every one !
I have a virtual trackpad on my iPhone and to move my mouse I'm using :
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, CGPointMake(((float)aD.msg)+location.x, ((float)aD.msg2)+location.y));
It's working well but this not a real mouse because when I put my mouse on my hidden dock, this one doesn't display it self....
I'm using C++ Builder 6 and I need something like TBitBtn, but it should react when mouse is pointing at it by changing to another image. Yes, I know I can use OnStartDoc but there is no OnStopDoc. :(
...
Hi,
I'm developing a web application and I noticed how irritating mouse gestures can be on it, so, is there a way to disable them (Firefox and Opera particularly)?
Edit: It seems there is some confusion. I'm developing a web based software that has an interface with such complex actions and tasks such as mouse selections, file drag and...