Changeset 369 for trunk/src/sdl


Ignore:
Timestamp:
05/22/15 13:21:44 (10 years ago)
Author:
epyon
Message:
  • removed all std headers (except cassert) from common.hh
  • sized int types in common.hh with static_assert checks
  • char8 -> uchar8/schar8 and 16/32
  • omitted core->stl includes fixed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdl/sdl_input.cc

    r357 r369  
    3030        if (ucode >= 32 && ucode < 128 )
    3131        {
    32                 kevent.key.ascii = static_cast<char8>( ucode );
     32                kevent.key.ascii = static_cast<uchar8>( ucode );
    3333                if (ucode >= 'a' && ucode <= 'z')
    3434                {
     
    3636                        int capslock = !!(ke.keysym.mod & KMOD_CAPS);
    3737                        if ((shifted ^ capslock) != 0) {
    38                                 kevent.key.ascii = (char8)SDL_toupper((int)ucode);
     38                                kevent.key.ascii = (uchar8)SDL_toupper((int)ucode);
    3939                        }
    4040                }
Note: See TracChangeset for help on using the changeset viewer.