Explorar o código

Fixed Keyboard.GetChar unicode handling

Mark Sibly %!s(int64=8) %!d(string=hai) anos
pai
achega
6acdb57c4a
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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