Archived

This topic is now archived and is closed to further replies.

daerid

Wrapping the mouse pointer

Recommended Posts

How would I go about wrapping the mouse pointer at the edge of the screen? I''ve looked every where, but can''t find any examples of it in source form

Share this post


Link to post
Share on other sites
are you the same daerid from the tribalwar forums? im not really sure what you mean by "wrapping" it, plz explain a little more

Share this post


Link to post
Share on other sites
Yeah, that''s me.

I want the mouse cursor, when it hits one side of the screen, to appear on the opposite (sp?) side.

Share this post


Link to post
Share on other sites
-]DoW[-RedDeath here

im not sure if this would work, but maybe handle the WM_MOUSEMOVE message, find when the mouse touches the edge of the screen(maybe use GetSystemMetrics()), then set it on the opposite side...

Share this post


Link to post
Share on other sites
That''s what I was thinking.. but won''t I have to use Hooks for that?

My app won''t receive any mouse messages unless the mouse is over the window.

I wanna make this a background app.

Share this post


Link to post
Share on other sites
Could you use DirectInput to keep track of when the cursor hits the edge? It sounds like you already know how to put it on the other side of the screen, right?

Share this post


Link to post
Share on other sites
well, not really. The point is, I''m trying to track mouse movement system wide.

I guess I''ll just experiment with hooks.

thanks anyways

Share this post


Link to post
Share on other sites