Mercurial > sdl-ios-xcode
comparison src/video/uikit/SDL_uikitview.m @ 5083:25d4feb7c127
Renamed SDL_keysym to SDL_KeySym
Renamed SDL_scancode to SDL_ScanCode
Added #defines to SDL_compat.h
author | krogoway |
---|---|
date | Mon, 24 Jan 2011 13:47:35 -0600 |
parents | a69e36365766 |
children | 7b7da52e8775 |
comparison
equal
deleted
inserted
replaced
5082:de59e0218aa2 | 5083:25d4feb7c127 |
---|---|
265 for (i=0; i<[string length]; i++) { | 265 for (i=0; i<[string length]; i++) { |
266 | 266 |
267 unichar c = [string characterAtIndex: i]; | 267 unichar c = [string characterAtIndex: i]; |
268 | 268 |
269 Uint16 mod = 0; | 269 Uint16 mod = 0; |
270 SDL_scancode code; | 270 SDL_ScanCode code; |
271 | 271 |
272 if (c < 127) { | 272 if (c < 127) { |
273 /* figure out the SDL_scancode and SDL_keymod for this unichar */ | 273 /* figure out the SDL_ScanCode and SDL_keymod for this unichar */ |
274 code = unicharToUIKeyInfoTable[c].code; | 274 code = unicharToUIKeyInfoTable[c].code; |
275 mod = unicharToUIKeyInfoTable[c].mod; | 275 mod = unicharToUIKeyInfoTable[c].mod; |
276 } | 276 } |
277 else { | 277 else { |
278 /* we only deal with ASCII right now */ | 278 /* we only deal with ASCII right now */ |