Skip to main content
GameDev.net gamedev.net
🔒 Locked

getting cursor position

Started by madmax22e Apr 20, 2000 at 9:40 AM 2 replies 1.4k views
Original Post
madmax22e
madmax22e
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?
Promag
Promag
You can get the position with getcursorpos.

PROgrammer
madmax22e
madmax22e
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

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

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

/sixb0nes
sixb0neshttp://www.xpression.ca

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.