瀏覽代碼

Fixed Keyboard.GetChar unicode handling

Mark Sibly 8 年之前
父節點
當前提交
6acdb57c4a
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      modules/mojo/input/keyboard.monkey2

+ 3 - 2
modules/mojo/input/keyboard.monkey2

@@ -289,9 +289,10 @@ Class KeyboardDevice Extends InputDevice
 		Case SDL_TEXTINPUT
 		
 			Local tevent:=Cast<SDL_TextInputEvent Ptr>( event )
-			Local char:=tevent->text[0]
-			If char PushChar( char )
 			
+			Local text:=String.FromCString( tevent->text )
+			
+			If text PushChar( text[0] )
 		End
 
 	End