Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8060


Ignore:
Timestamp:
Mar 12, 2011, 5:43:12 AM (14 years ago)
Author:
rgrieder
Message:

Reverted some changes to OIS v1.3.
@Kevin: hope this is OK for you.

Location:
code/branches/mac_osx/src/external/ois
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/external/ois/linux/LinuxKeyboard.cpp

    r7506 r8060  
    284284        while( XPending(display) > 0 )
    285285        {
    286                 XNextEvent(display, &event);            if(KeyPress == event.type)
     286                XNextEvent(display, &event);
     287
     288                if(KeyPress == event.type)
    287289                {
    288290                        unsigned int character = 0;
  • code/branches/mac_osx/src/external/ois/mac/MacKeyboard.cpp

    r7767 r8060  
    199199        char macChar;
    200200       
     201        // TODO clean this up
    201202        if (mTextMode == Unicode)
    202203        {
    203204                //get string size
    204205                UInt32 stringsize;
     206                //status = GetEventParameter( theEvent, 'kuni', typeUnicodeText, NULL, 0, &stringsize, NULL);
     207                //status = GetEventParameter( theEvent, 'kuni', typeUnicodeText, NULL, sizeof(UniChar)*10, NULL, &text );
    205208                status = GetEventParameter( theEvent, 'kuni', typeUnicodeText, NULL, sizeof(UniChar) * 10, &stringsize, &text );
     209                std::cout << "String length: " << stringsize << std::endl;
     210               
     211                //wstring unitext;
     212                //for (int i=0;i<10;i++) unitext += (wchar_t)text[i];
     213                //wcout << "Unicode out: " << unitext << endl;
    206214               
    207215                if(stringsize > 0)
Note: See TracChangeset for help on using the changeset viewer.