Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input seems to stop after toggling options and settings menu and F11 #295

Closed
randomuser4444 opened this issue Feb 16, 2022 · 6 comments
Closed

Comments

@randomuser4444
Copy link

randomuser4444 commented Feb 16, 2022

**Input seems to stop after toggling options and settings menu. UPDATE: I just noticed F11 does this too.

  • Run any game, keyboard input works fine, example, inserting credit or moving around the emulated menu.
  • Simply click on Bletch's Menu options example; toggle Options and Settings menu. Just simply bring up the pulldown menus don't need to select anything.
  • Game no no longer accepts inputs.
  • You can try and re click the game window or menus etc filldle around but inputs don't work until a hard restart or close/open Bletch.
@randomuser4444 randomuser4444 changed the title Input seems to stop after toggling options and settings menu Input seems to stop after toggling options and settings menu and F11 Feb 16, 2022
@npwoods
Copy link
Owner

npwoods commented Feb 19, 2022

I think I may have a fix for this. I don't want to unilaterally declare victory yet... try it out!

@randomuser4444
Copy link
Author

It's I just tested with 2.12.0.20 and it's improved, but still happens when you toggle fullscreen or run aroiund the menus, but if you show the about dialoge and close it seems to fix inputs again.

@randomuser4444
Copy link
Author

Cool, I just got the latest version and spammed the emulater and the UI and it didn't loose imputs. Closing now.

@randomuser4444
Copy link
Author

Just one thing, if you bring up the debugger it seems to loose input then, not sure if this is a quick fix or a pain, but thought I would let you know.

@davide125
Copy link
Contributor

I can repro a variant of this issue on Linux with 2.13. When starting any game, input isn't working. If I toggle full screen with F11, then input starts working normally.

@npwoods
Copy link
Owner

npwoods commented Feb 26, 2022

My fix to this issue was very Windows-specific; it involved a Win32 CBT hook:
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms644977(v=vs.85)

The Windows issue was that Qt simply did not go through great lengths to ensure that the "Qt focus" and the "Win32 focus" were in sync. It is very possible that a similar issue is at play in the X11 world but you're on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants