botw-freecam
botw-freecam copied to clipboard
Disable keyboard input
Set up a hotkey to disable keyboard input or automaticly disable when focus on window is lost
Relevant to this issue: https://stackoverflow.com/questions/42589496/getting-a-list-of-all-open-windows-in-c-and-storing-them
Well, seems like there's no easy way to quickly do this, in order to do a "proper" implementation I'd have to rewrite the entire input system. The quick way of doing this is a button to block keyboard input but doesn't seems to be a good solution since it'll require more interaction from the user.
This implementation will take me much more time than expected.
Thanks for taking the time to look into it
I understand this takes a lot of effort to fix, but I also am facing the same issue.
I often leave my game running while doing some other things on the side on the same PC, which makes Link move, or the cam move unintentionally because of inputs captured from outside the game.
@mistermark Yes, it is something I have in mind, but as I already said, it'll take a lot of time because I have to rewrite the entire input system. Right now the solution I see is hooking into GetMessage
to at least receive the message of when the window is on focus, but this means I have to update memory-rs
to be able to easily hook to functions outside of Cemu.