Changeset 172 for trunk/src/gl/gl_window.cc
- Timestamp:
- 07/25/13 14:37:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_window.cc
r171 r172 28 28 { 29 29 kevent.key.ascii = static_cast<char8>( ucode ); 30 #if NV_SDL_VERSION == NV_SDL_20 31 if (ucode >= 'a' && ucode <= 'z') 32 { 33 int shifted = !!(ke.keysym.mod & KMOD_SHIFT); 34 int capslock = !!(ke.keysym.mod & KMOD_CAPS); 35 if ((shifted ^ capslock) != 0) { 36 kevent.key.ascii = SDL_toupper(ucode); 37 } 38 } 39 #endif 30 40 } 31 41
Note: See TracChangeset
for help on using the changeset viewer.