mouse-coordinates

Absolute Mouse Positions on Processing

This is a copy paste of a post i made on the processing forum (where i haven't got an answer so far) thought i might as well try here. Processing is a very cool way to draw stuff, specially for the webpages. Just as a reference http://processing.org Hey, i'm new to processing, i'm using it to make a flashless website, so i'm pretty muc...

Yui Mouse Coordinates over Element

I'm trying to determine if the mouse is over an element preferably with YUI if there is a method for that already. Basically something like function bool IsMouseOver(Element); ...

How can I get my own cursor coordinates in Firefox?

I'm currently designing a website and just realized it would help me a lot if I would know my own cursor coordinates. I mostly use Firefox for previewing the new page. So an add-on for Firefox would be great. I checked out Firebug, but didn't find the feature there. Does anyone know how to show the current cursor coordinates in Firefo...

Rotating a picture using mouse position in C#

Hi everyone. Basically what I'm trying to do is have a picture rotate using mouse events. For example, while you hold down the left mouse button, the picture rotates when you move the mouse up and down. I found another question on here almost like mine (How do I rotate a picture in C#) but when mapping the angle parameter in the rotate m...

I need to know the x and y coordinates of the button click when a WM_COMMAND is activated.

I have a button created with //Create Compass HWND hWndCompass = CreateWindowEx(NULL, "BUTTON", "Compass", WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, 600, 10, 50, 24, hWnd, (HMENU)IDC_COMPASS, GetModuleHandle(NULL), NULL); I will add the picture in the future but I need to know where on the button they clicked so I ...

screen coordinates with a horizontal scroll bar

Hi all, I need to place icons on a map image. Since the map image is bigger than my screen resolution 1280 x 1024, a horizontal scroll bar is shown. I use Location x and y to place icons, but the problem is: placing an icon at location (0, 0) when the horizontal scroll bar is at left-most position is different from when the horizon...

OpenGL: How to calculate the angle where my mouse is pointing at in the 3d space?

I only need to know which angle (x,y,z vector) my cursor is pointing at. So i can shoot any particle in the direction i am pointing at. I cant use depth testing, so the typical picking methods are not an option. Is this possible with pure math only? if i know the view port aspect ratio and perspective etc? Edit: I need to get the coor...

Getting mouse co-ordinates using jQuery

I am building a breakout game using jQuery and the <canvas> element. To control the paddle, it will follow the mouse. So I need to get the mouse co-ordinates in my drawPaddle() method. Looking on the jQuery site it has examples like this: $(document).mousemove(function(e){ $('#status').html(e.pageX +', '+ e.pageY); }); Which does...