Archived

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

Vulcan

Mouse Control In window mode / DX8

Recommended Posts

Vulcan    122
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

Share this post


Link to post
Share on other sites
Cybertron    122
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!!

Share this post


Link to post
Share on other sites