我有一个关键代码:
let keycode = event.GetIntegerValueField(.keyboardEventKeycode)
有没有办法把它翻译成一个字符?
func keyboardGetUnicodeString(maxStringLength: Int, actualStringLength: UnsafeMutablePointer <Int>?, unicodeString: UnsafeMutablePointer <UniChar>?)
这似乎是我需要的,但它看起来很可怕!有人可以解释如何从 swift 调用该函数吗?谢谢!