In DirectX 9, how do I detect mouse move/mouse click on sprite and text?
I am trying to create game main menu.
Detecting mouse move/mouse click on sprite/text
You need to find the screen-space rectangle for the sprite/text and then check if the mouse is in that rectangle. Which of these two are you having trouble with?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement