micmonay / keybd_event

For simulate key press in Linux, Windows and Mac in golang
MIT License
380 stars 57 forks source link

High latency on MacOS #28

Open olavfosse opened 3 years ago

olavfosse commented 3 years ago

Hello, when using this package I found that the latency for making keypresses is much greater on MacOS than on Linux, to the point where it is a problem for my project. Is there any ways to reduce the time it takes to make a keypress? If you want I can provide a minimum viable example for where i find the latency to be too high.

Thanks


$ go version  
go version go1.15.6 darwin/amd64
$ uname -a    
Darwin Olavs-MBP 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 x86_64