减少或去除 usleep 函数调用可以提高发送按键事件的速度,但是如果系统响应变慢的话会引起其他问题。
Reducing or removing the usleep function calls can improve the speed of the keypress event sending, but may cause other issues when the system is responding sluggishly.
显然,对于这种问题有线设备是近似无干扰的:没什么会阻止按键的电信号沿着线输入到你的电脑。
For obvious reasons, wired devices are near-impervious to this sort of issue; there's nothing stopping the button's electrical signal from reaching your PC along the way.
应用推荐