I am catching keyboard event of MLTE.
I want to get the value of event parameter coming from keyboard event so
that I can
compare the value with Return key.
Following is the code for it.
But not getting proper value.
please suggest.
EventRef theTextEvent;
UniChar *text;
UInt32 actualSize;
void *outData;
GetEventParameter (theTextEvent,kEventUnicodeForKeyEvent,
typeCString, NULL, 0, &actualSize, outData);
text = (UniChar*) NewPtr(actualSize);
GetEventParameter (theTextEvent, kEventUnicodeForKeyEvent,
typeUnicodeText, NULL, actualSize, NULL, text);
text = (UniChar*) NewPtr(actualSize);
Regards
-Hemant


|