Archived

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

Wrapping the mouse pointer

This topic is 5778 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
-]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