keyboardGetUnicodeString(maxStringLength:actualStringLength:unicodeString:)
Returns the Unicode string associated with a Quartz keyboard event.
Declaration
func keyboardGetUnicodeString(maxStringLength: Int, actualStringLength: UnsafeMutablePointer<Int>?, unicodeString: UnsafeMutablePointer<UniChar>?)Parameters
- maxStringLength:
The length of the array you provide in the
unicodeStringparameter. - actualStringLength:
A pointer to a
UniCharCountvariable. On return, the variable contains the actual count of Unicode characters in the event data. - unicodeString:
A pointer to a
UniChararray. You are responsible for allocating storage for the array. On return, your array contains the Unicode string associated with the specified event.
Discussion
When you call this function and specify a NULL string or a maximum string length of 0, the function still returns the actual count of Unicode characters in the event data.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()