开发者

iPhone/iPad Get State of Wireless keyboard

开发者 https://www.devze.com 2023-02-08 09:34 出处:网络
Is there any way in the iPhone SDK (not a jailbroken API, this needs to be AppStore-Compliant), to get the state of a connected wireless keyboard开发者_如何学Python? e.g. which keys are pressed and wh

Is there any way in the iPhone SDK (not a jailbroken API, this needs to be AppStore-Compliant), to get the state of a connected wireless keyboard开发者_如何学Python? e.g. which keys are pressed and which aren't? I have searched for this with google, but I am coming up short.

Any help would be greatly appreciated!


Not really. You can tell whether a keyboard is connected or not, but you won't get callbacks for corded shortcuts. There is clearly a way to do this, because Pages supports keyboard shortcuts (Cmd-Z, etc), but it's not in the public SDK.

0

精彩评论

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