I am confused as to how applications handle the mouse input with Direct2D.
Consider the case:
- Say I painted a ball on the window. If I move the cursor over the ball, it will change color.
- Does this mean that the application have to poll the mouse and check if the cursor is over the ball pretty much every second of the application running time.
- Doesn't that decrease performance when you have more items? Is there another way than what polling which in other words is a bunch of if-statements.