Just a small DirexctX 7 question. Iām making a samll game using Direct Draw. Do someone now how to make my cursor disappear when my game is running, and make it come back when it ends.
Printable View
Just a small DirexctX 7 question. Iām making a samll game using Direct Draw. Do someone now how to make my cursor disappear when my game is running, and make it come back when it ends.
If you want to use the mouse in your game too, I suggest taking a look at DirectInput (since that automatically hides the cursor so you can draw you own). If you don't want to use the mouse and just want to hide it, look up the ShowCursor API call (sorry, I don't have the API Viewer right now).
You can call ShowCursor(0) to hide it and ShowCursor(1) to show it again after you program has finished.
If you need more help, post a reply and I'll check it when I'm at home again...
Good luck!
Thank you. You made my day.