开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜