Archived

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

Blue*Omega

The amazing, dissapearing mouse!

Recommended Posts

Blue*Omega    150
This is strange. Whenever I try and put my mouse over ANY DirectX window, my mouse dissapears. It''s like it goes beneath the window. This happens with all the examples that microsoft did too, including ones that you need to use the mouse for! My current video card is ATI 128 or something like that. Any ideas on how to get the mouse to come out of hiding? ----------------------------- Vash the Stampede "Love & Peace!"

Share this post


Link to post
Share on other sites
kmsixpence    134
If you''re using directinput, it should do that. it does that for me to. if you want a cursor, you need to use one of the win32 functions to get the position and then draw it onto the screen. or maybe you could use a function such as ShowCursor(hwnd, true) if the function exists. I don''t know if it exists.

[Edited by - kmsixpence on October 17, 2005 7:07:40 PM]

Share this post


Link to post
Share on other sites
Smoogle    122
When in exclusive mode for a device, windows is no longer able to gain its position. A mouse is nearly always used in exclusive mode, so that means windows is then able to get its position, and thus unable to draw the cursor.
There are three posible solutions (of many):
1. Don''t use directInput (unlikely )
2. Process the WM_ACTIVATE messages, and if being deactivated, unaquire the mouse, and if being activated, acquire it. Also make sure to reacquire on an error DIERR_INPUTLOST, which can come from GetData.
3. Draw your own cursor using ddraw or whatever.

Share this post


Link to post
Share on other sites