Changeset 406 for trunk/src/sdl/sdl_input.cc
- Timestamp:
- 06/20/15 00:05:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sdl/sdl_input.cc
r395 r406 25 25 kevent.key.code = KEY_NONE; 26 26 27 uint32 ucode = (uint32)ke.keysym.sym;27 uint32 ucode = static_cast<uint32>( ke.keysym.sym ); 28 28 29 29 // if result is a typable char place it into the structure … … 36 36 int capslock = !!(ke.keysym.mod & KMOD_CAPS); 37 37 if ((shifted ^ capslock) != 0) { 38 kevent.key.ascii = (uchar8)SDL_toupper((int)ucode);38 kevent.key.ascii = static_cast<uchar8>( SDL_toupper( static_cast<int>( ucode ) ) ); 39 39 } 40 40 }
Note: See TracChangeset
for help on using the changeset viewer.