C
C#•6mo ago
missingo

Disabling keyboard key/mouse click

Howdy, I am wanting to see if there was a way to disable a key or a mouse click input. I am wanting to design something to disrupt during a game to use with Twitch.
3 Replies
FestivalDelGelato
FestivalDelGelato•6mo ago
blocking the inputs system wide?
missingo
missingoOP•6mo ago
yes please 🙂
FestivalDelGelato
FestivalDelGelato•6mo ago
there are apis like BlockInput (https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-blockinput) but probably you need something more specific than that? maybe you need to just block some combinations
BlockInput function (winuser.h) - Win32 apps
Blocks keyboard and mouse input events from reaching applications.

Did you find this page helpful?