Skip to main content
gamedev.net
🔒 Locked

mouse

Started by hello_there Dec 12, 2002 at 2:05 AM 3 replies 200+ views
Original Post
hello_there
hello_there
how do you use windows messages to get mouse movement and mouse clicks etc.
____________How could hell be worse?
Wildfire
Wildfire
I''d use

void GetCursorPos(LPPOINT); (Parameter is pointer to POINT struct)
void SetCursorPos(int,int);

to get the mouse position. Not sure about mouse-keys right now.
How do I set my laser printer n stun? o
hello_there
hello_there
i looked at direct input but it didn't want to work i just want something to get it working then i'll try getting direct input working. what is the POINT struct.

[edited by - hello_there on December 12, 2002 4:08:13 AM]
____________How could hell be worse?
Wildfire
Wildfire
msdn.quote.start();

The POINT structure defines the x- and y- coordinates of a point.

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

msdn.quote.end();

btw. found this on the article page:
Example of Processing Mouse Events in OpenGL

edit: removed typo, 'mdsn.quite.end' ... don't let m$ hear that =)

[edited by - Wildfire on December 12, 2002 6:43:04 AM]
How do I set my laser printer n stun? o

Topic Locked

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

Sign in to reply to this topic.