Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoakeyboard.m @ 3132:88861448961f gsoc2009_IME
Add SDL_TEXTEDTING event to inform application about marked text.
author | Jiang Jiang <gzjjgod@gmail.com> |
---|---|
date | Wed, 01 Jul 2009 07:33:58 +0000 |
parents | fef1a835af43 |
children | f4e553ec6a62 |
comparison
equal
deleted
inserted
replaced
3131:009bd8f81947 | 3132:88861448961f |
---|---|
127 _markedText = [aString retain]; | 127 _markedText = [aString retain]; |
128 } | 128 } |
129 | 129 |
130 _selectedRange = selRange; | 130 _selectedRange = selRange; |
131 _markedRange = NSMakeRange(0, [aString length]); | 131 _markedRange = NSMakeRange(0, [aString length]); |
132 | |
133 SDL_SendEditingText([aString UTF8String], selRange.location, selRange.length); | |
132 | 134 |
133 NSLog(@"setMarkedText: %@, (%d, %d)", _markedText, | 135 NSLog(@"setMarkedText: %@, (%d, %d)", _markedText, |
134 selRange.location, selRange.length); | 136 selRange.location, selRange.length); |
135 } | 137 } |
136 | 138 |