Custom Cursors ala Direct3D
Well, I''ve been working on a game engine, and I was digging through The Zen of Direct3D (IMO it''s a horrible book), and near the last chapter, I noticed some code for a custom mouse cursor. So.. I tried it, and.. it didn''t work.
The author''s code tells you to use DirectInput8 to acquire the mouse, and then in a CZenMouse class keep a POINT structure that converts the relative coordinates passed by DirectInput into screen coordinates, and then to pass those into IDirect3DDevice8::SetCursor(). Now the problems. This does not work in fullscreen mode, and it works in windowed mode, but only if I don''t call IDirectInputDevice8::Acquire() on the mouse object. Why is this happening? Am I just a crap coder? (Don''t answer that.)
personally, i never bothered with that and just made a "mouse" by drawing a small ortho quad with a texture on it
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement