Default keyboard

Jul 31, 2012 at 12:29 PM


I'm trying to determine whether input is coming from the keyboard or another source.

Is that possible with this dll?




Aug 1, 2012 at 3:29 PM

With a little work you can modify this library so it tells you if an incoming event was injected or not. Generally speaking injected events are "faked" from software. However you can not rely on this flag 100%: for example my keyboard's media keys produce events with the injected flag on while my mouse's extra button sends a genuine PageUp. I guess it depends on your task at hand if this solution is good enough.