开发者

CGEventCreateScrollWheelEvent can't work as Zoom in/out as Control key is press

开发者 https://www.devze.com 2023-03-06 08:14 出处:网络
I can use Event Tap/CGEventCreateScrollWheelEvent to send scroll event to HID Tap. But as I keep sending the scroll events and also pressing the control key at the same time,

I can use Event Tap/CGEventCreateScrollWheelEvent to send scroll event to HID Tap.

But as I keep sending the scroll events and also pressing the control key at the same time,

the expected Zoom in/out does 开发者_开发知识库not come.

Is the HID Event tap too high level ? Will IOHIDPostEvent be a better API to send mouse event as modifier key is taken into consideration?

Thank you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号