TolikPylypchuk / SharpHook

SharpHook provides a cross-platform global keyboard and mouse hook, event simulation, and text entry simulation for .NET
https://sharphook.tolik.io
MIT License
324 stars 32 forks source link

IsEventSimulated true when it isn't #77

Closed JMPSequeira closed 8 months ago

JMPSequeira commented 8 months ago

OS Name Microsoft Windows 11 Pro Windows Version 10.0.22631 Build 22631

SharpHook Version 5.2.0

I'm using your lib and if a key is pressed the IsEventSimulated is always true. I think the bit operation should be bitwise And and not Or IsEventSimulated

TolikPylypchuk commented 8 months ago

Hi! Thanks for noticing the problem! I will fix it shortly.

TolikPylypchuk commented 8 months ago

I've just released version 5.2.1 which fixes this bug, so this issue can be closed.