Opened 3 years ago

#13157 new defect

COMMON: EventManager's getMousePos() is not always reliable

Reported by: eriktorbjorn Owned by:
Priority: normal Component: Common
Version: Keywords:
Cc: Game:

Description

I'm running ScummVM under Linux, with SDL Surface as the graphics mode. The default scaler is Normal 4x.

I noticed while debugging a problem in The Case of the Serrated Scalpel that if I started the game (in my case by loading a savegame from the launcher) and did not do anything with the mouse, the event manager's getMousePos() would return a position way outside of the 320x200 pixels the game was running at.

I think, though I'm not quite sure, that the coordinates I saw were the mouse position last updated while the launcher was running. Which of course was running at a much higher resolution than the game. Changing the resolution did not update the mouse position, though the initial position of the mouse cursor was still correct so obviously it had the necessary information from somewhere.

Change History (0)

Note: See TracTickets for help on using tickets.