🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

getting cursor position

Started by
2 comments, last by madmax22e 24 years, 2 months ago
whats the way to get the cursor pos in a win32 application? and is there a way to make a particular function get called every time the mouse position changes?
Advertisement
You can get the position with getcursorpos.

PROgrammer
ive left my microsoft programming book at school and we''re on break for quite a while, so how do you declare the varible that gets the cursor pos

? x;
fu = GetCursorPos(x);

maybe im way off, but this is how i did it in vb but it didnt have to be a special type

BOOL GetCursorPos(
LPPOINT lpPoint // address of structure for cursor position
);

typedef struct tagPOINT {
LONG x;
LONG y;
} POINT;

/sixb0nes
sixb0neshttp://www.xpression.ca

This topic is closed to new replies.

Advertisement