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

background key inputs #13

Open
ULTROS-PROFESSIONAL opened this issue Mar 31, 2022 · 2 comments
Open

background key inputs #13

ULTROS-PROFESSIONAL opened this issue Mar 31, 2022 · 2 comments

Comments

@ULTROS-PROFESSIONAL
Copy link

ULTROS-PROFESSIONAL commented Mar 31, 2022

hi,

absolutely know nothing about rust, but i'm running this on arch and struggling to identify a way to make mist accept key inputs when it's not currently the focussed window?

this is an issue when running e.g. unity games which need to be be the focussed window to accept inputs. this is obviously an issue for speedrunning as you need to alt+tab out of the game to make your split

is there anyway to make mist accept keystrokes when it's running in the background?

i'm not sure if this is handy but livesplit have a crate to handle this apparently? https://github.com/LiveSplit/livesplit-core/tree/master/crates/livesplit-hotkey

thanks for writing this, i've been using it almost daily!

@LtPeriwinkle
Copy link
Owner

Thanks for using mist, I'm glad you find it useful! I haven't really looked into global hotkeys at all for mist, I've only been using the capabilities provided by SDL2 input handling, which doesn't include that. I'll look at livesplit-hotkey a bit more in-depth than I have in the past, see what it will take to implement. In the future, global hotkeys are probably plugin territory but since the project isn't there yet, I'll try to put them in the main thing.

@ULTROS-PROFESSIONAL
Copy link
Author

thanks for getting back to me and thanks for the explanation!

as i said i don't know how to write rust and can't help with the code, so huge thanks for considering this!

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

2 participants