#include "wx/mac/uma.h"
#include "wx/mac/aga.h"
-#include "wx/app.h"
#include "wx/tooltip.h"
#include "wx/dnd.h"
unsigned char charCode ;
wxChar uniChar[2] ;
- uniChar[0] = 0;
- uniChar[1] = 0;
-
+ uniChar[0] = 0;
+ uniChar[1] = 0;
+
UInt32 keyCode ;
UInt32 modifiers ;
Point point ;
if ( numChars * 2 > 4 )
charBuf = new UniChar[ numChars ] ;
GetEventParameter( event, kEventParamKeyUnicodes, typeUnicodeText, NULL, dataSize , NULL , charBuf ) ;
- charBuf[ numChars - 1 ] = 0;
+ charBuf[ numChars - 1 ] = 0;
#if SIZEOF_WCHAR_T == 2
uniChar = charBuf[0] ;
#else
wxMBConvUTF16 converter ;
- converter.MB2WC( &uniChar , (const char*)charBuf , 2 ) ;
+ converter.MB2WC( uniChar , (const char*)charBuf , 2 ) ;
#endif
if ( numChars * 2 > 4 )
event.m_y = point.v;
#if wxUSE_UNICODE
- event.m_uniChar = uniChar ;
+ event.m_uniChar = uniChar[0] ;
#endif
event.SetTimestamp(when);
return 0;
}
-