Mouse Control In window mode / DX8

Started by
0 comments, last by Vulcan 21 years, 7 months ago
Im using the d3dapp framework from microsoft, ive got a game going, but with my directinput running in a windowed mode, my cursor always moves even when my windows mouse cursor does not lie within my apps window. I would like to know how to tell if the windows cursor is within my app, and how I can change the windows cursor to my app cursor (or hide it) while it lies over my window. Theres got to be a win32 api somewhere... -Vulcan
Advertisement
Make DI use foreground mode, the device will automaticlally be unaquired when the window looses focus. Be sure to acquire again it if you get an error on GetData

ShowCursor hides the mouse over your window, D3D supports a custim cursior aswell. look in the docs!!

This topic is closed to new replies.

Advertisement