botw-freecam icon indicating copy to clipboard operation
botw-freecam copied to clipboard

Disable keyboard input

Open TheGordinho opened this issue 3 years ago • 5 comments

Set up a hotkey to disable keyboard input or automaticly disable when focus on window is lost

TheGordinho avatar Mar 06 '21 14:03 TheGordinho

Relevant to this issue: https://stackoverflow.com/questions/42589496/getting-a-list-of-all-open-windows-in-c-and-storing-them

etra0 avatar Mar 10 '21 02:03 etra0

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.

etra0 avatar Mar 10 '21 18:03 etra0

Thanks for taking the time to look into it

TheGordinho avatar Mar 14 '21 15:03 TheGordinho

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 avatar Mar 16 '21 08:03 mistermark

@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.

etra0 avatar Mar 17 '21 17:03 etra0