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

The "Hotkey Enable Delay" feature breaks when "All Users Control Menu" is enabled #14322

Closed
bslenul opened this issue Aug 14, 2022 · 6 comments
Closed

Comments

@bslenul
Copy link
Contributor

bslenul commented Aug 14, 2022

Description

When "All Users Control Menu" is enabled, the "Hotkey Enable Delay" feature breaks, it only works when set to "0", any other value never blocks the input from being passed to the core.
And even at "0" it doesn't always work properly, if you spam the hotkey it sometimes still sends the input to the core.

Expected behavior

If set to anything but "0", the inputs sent to the core should be blocked after that number of frames.

Actual behavior

Unless it's set to "0", the inputs will keep getting sent to the core.

Steps to reproduce the bug

  1. Turn ON Settings > Input > Menu Controls > All Users Control Menu
  2. Set a "Hotkey Enable" hotkey in Settings > Input > Hotkeys to Select.
  3. Set "Hotkey Enable Delay" to anything but "0".
  4. Boot a game.
  5. Hold Select and notice that you can still move.

Bisect Results

If I bisected properly 1ef78d3 is the first bad commit.

Version/Commit

Environment information

  • OS: tested on Windows 10 and on a Linux Mint VM
@hizzlekizzle
Copy link
Contributor

oh wut? that PR wasn't long after block delay feature was added in the first place... I wonder if it's been broken for the retropie(?) downstream folks, too, since they've been patching it in forever.

@bslenul
Copy link
Contributor Author

bslenul commented Aug 14, 2022

that PR wasn't long after block delay feature was added in the first place...

~1.5 year later (feature was added in Jun 2020 and the guilty commit is from Nov 2021). It's not a big deal honestly since you can still use both the hotkey and the core inputs (as long as it's not set to "0"), but it makes the setting pretty much useless...

No idea about RetroPie 🤷

@bslenul
Copy link
Contributor Author

bslenul commented Aug 14, 2022

OK so it's the "All Users Control Menu" that causes the issue, the setting works absolutely fine when this is OFF.

edit: Issue and title updated.

@bslenul bslenul changed the title The "Hotkey Enable Delay" feature is broken The "Hotkey Enable Delay" feature breaks when "All Users Control Menu" is enabled Aug 14, 2022
@LibretroAdmin
Copy link
Contributor

LibretroAdmin commented Aug 15, 2022

Yes, 'All Users Control The Menu' has always been buggy from its inception and might not play ball with other features. That's why we took it out at some point hoping someone would do a better implementation. Instead, what happened is that people would just complain about wanting it back with noone wanting to do the actual effort of implementing a version that would be better without all the issues, so instead the old code just got brought in.

So, PRs welcome here.

@bslenul
Copy link
Contributor Author

bslenul commented Aug 15, 2022

It's not a big deal tbh, that "All Users Control Menu" does more good than harm, I'm glad it was added back in ;) That bug it introduces is very minor.

@bslenul
Copy link
Contributor Author

bslenul commented Jul 10, 2023

Recent changes in "Hotkey Enable" made me revisit this issue, I can't tell if it's related to these changes but the issue seems to be fixed! 👍

Closing!

@bslenul bslenul closed this as completed Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants