How do I access the mouse with DirectX?
I''m remaking my DOS game in DirectX (www.geocities.com/momogames/DELTACTF.zip). If you play the game, you''ll see how you control the ships: allmost comepletly by the mouse, except for firing and less used features. I find it to be a very intuitive control method.
Anyways, how would you access mouse x, y, button1, button 2?
Thanks in advance....
i''m assuming you have the SDK< and iif so, you also have the help file. look into DirectInput. or if that''s too cryptic (it usually is) try www.andypike.com. he''s got DX8 tutorials (if you''re using DX9 it shouldn''t be too much different unless they changed something that worked fine like MS usually does) including one that has a whole control class that makes it easy to just start up the mouse and use it.
----------------------------
hey, i know how to use DX8 now! sort of.. well i''ve got the object loading, rotation, positioning, camera, text and lights down... now for input and sound.
----------------------------
hey, i know how to use DX8 now! sort of.. well i''ve got the object loading, rotation, positioning, camera, text and lights down... now for input and sound.
_______________________________________________________________________Hoo-rah.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement