[GREENFOOT-358] Change the behaviour of getMouseInfo()
Currently, Greenfoot.getMouseInfo() returns null if 1) the mouse has not moved since the method was last called, but Greenfoot does have mouse focus, or 2) Greenfoot does not have mouse focus.
We agreed to change the behaviour 1 to instead return the last known mouse info (at least the last known position -- without any clicks that happened in the previous frame). I think the agreement was that behaviour 2 should still return null.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 2.2.0