libsdl-org / sdl12-compat

An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes.
Other
191 stars 40 forks source link

Fuse ZX Spectrum emulator: mouse grab after returning from full screen #301

Open bertogg opened 1 year ago

bertogg commented 1 year ago

I have been testing the Fuse ZX Spectrum emulator with sdl12-compat and although it seems to work perfectly for the most part I noticed one difference when compared to the pure SDL1 version.

This can be tested with Debian bookworm or testing/sid.

  1. Install fuse-emulator-sdl and libsdl1.2-compat
  2. Run LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/sdl12-compat fuse-sdl -g 3x (the -g 3x option is only used to scale the screen, otherwise it will look very small on a modern display).
  3. If you see a warning about a missing Spectrum ROM simply press enter.
  4. Now you should see the initial Spectrum screen (an empty window with a copyright message).
  5. Observe that you can move the mouse pointer around the screen normally.
  6. Switch to full screen mode by pressing F4, then s, then enter.
  7. Switch back to windowed mode by pressing again F4, then s, then enter.

You can close the emulator by pressing F10.

If you run fuse-sdl without the compat layer (i.e. without LD_LIBRARY_PATH) this problem doesn't happen.