Skip to main content
gamedev.net
🔒 Locked

mouse movement

Started by hello_there Dec 14, 2002 at 7:47 PM 11 replies 300+ views
Original Post
hello_there
hello_there
i got the mouse movement working but i had to use int positions is there anyway to convert that to float positions. or is there a way to get mouse movement using floats?
____________How could hell be worse?
hello_there
hello_there
fine then can someone tell me how to get the windows mouse position.
____________How could hell be worse?
Colin Jeanne
Colin Jeanne
The mouse position is stored in integral amounts. If you want to use a floats you''ll have to cast.



The hackers must have gotten into the system through the hyperlink!!
Invader''s Realm
hello_there
hello_there
can you give me an example using dx8 please.
____________How could hell be worse?
hello_there
hello_there
don''t worry i though of how to do it and it works i just did

mousex+=mouse_state.lX*time;
mousey+=mouse_state.lY*time;
____________How could hell be worse?
Colin Jeanne
Colin Jeanne
quote:
Original post by hello_there
don''t worry i though of how to do it and it works i just did

mousex+=mouse_state.lX*time;
mousey+=mouse_state.lY*time;


Is anybody else confused?



The hackers must have gotten into the system through the hyperlink!!
Invader''s Realm
hello_there
hello_there
the position of the mouse should be in a POINT struct but it works. what is it confusing?
____________How could hell be worse?
Colin Jeanne
Colin Jeanne
Your solution has nothing to do with the question other than it uses the mouse.



The hackers must have gotten into the system through the hyperlink!!
Invader''s Realm
LockePick
LockePick
This... is the weirdest thread I have ever been in.
If you want to make the mouse coordinates into floats, just transfer the POINT values into float variables. It''s not hard, you use an equal sign.

------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."
Ronin Magus
Ronin Magus
Probably he''s trying to convert the pixel mouse coords into 3d plane units?

Topic Locked

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

Sign in to reply to this topic.