Opened 14 years ago

Closed 13 years ago

#626 closed defect (fixed)

Game should not override cursor sprite when over window frame.

Reported by: Jay Weisskopf Owned by:
Priority: Nice to Have Milestone: Alpha 3
Component: Core engine Keywords:
Cc: Patch:

Description

The game normally uses a custom cursor sprite when the cursor is within the gameplay area. However, the custom sprite is still displayed when the cursor moves outside of the gameplay area and over the window's frame. The cursor should go back to whatever the desktop environment wants at this point. It is slightly disconcerting to still see a game pointer when one expects to see a resize sprite.

Change History (2)

comment:1 by Kieran P, 14 years ago

Priority: trivialminor

comment:2 by ben, 13 years ago

Resolution: fixed
Status: newclosed

(In [8789]) Handle SDL_ACTIVEEVENT which notifies us of mouse focus change. If mouse focus is lost don't render cursor, reverting back to OS style. When focus is regained, render cursor again. Fixes #626

Note: See TracTickets for help on using tickets.