Detecting mouse move/mouse click on sprite/text

Started by
1 comment, last by Medo Mex 11 years, 10 months ago
In DirectX 9, how do I detect mouse move/mouse click on sprite and text?

I am trying to create game main menu.
Advertisement
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?
I am looking for an example how detecting mouse move and mouse click on both text and sprite.

This topic is closed to new replies.

Advertisement