schellingb / dosbox-pure

DOSBox Pure is a new fork of DOSBox built for RetroArch/Libretro aiming for simplicity and ease of use.
GNU General Public License v2.0
731 stars 61 forks source link

Blocking Alt+F4 being passed to host OS (Win98SE guest) #430

Closed emxd closed 7 months ago

emxd commented 8 months ago

Hello,

I'm not sure if this was addressed before, I did a quick search and found nothing - is it possible to block alt+f4 from closing Retroarch (so that it would be processed in the guest OS, but not outside of it). And if not, is there any chance of implementing this feature? The Win9x emulation is great, but alt+f4 is one thing that I'm missing.

schellingb commented 7 months ago

This question is for RetroArch not the core. I think ideally RetroArch wouldn't be closable with Alt+F4 while Game Focus is active, but maybe it isn't that simple to prevent the OS from doing so. Either way it would need to be addressed in RetroArch and probably in each of the Windows input drivers. The On-Screen Keyboard can be used to input all kinds of key combinations, including Alt+F4 or Ctrl+Alt+Del.