DEADSOFTWARE

TextEdit now shows keyboard on android
[d2df-sdl.git] / src / game / g_gui.pas
index afae716114bf0d26af34a04d561da392a1cafbcd..6f4dfbe73c07022fc28be9e626340fe1b13a1348 100644 (file)
@@ -20,7 +20,7 @@ interface
 
 uses
   {$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
-  e_graphics, e_input, e_log, g_playermodel, g_basic, MAPDEF, utils;
+  e_graphics, e_input, e_log, g_playermodel, g_basic, g_touch, MAPDEF, utils;
 
 const
   MAINMENU_HEADER_COLOR: TRGB = (R:255; G:255; B:255);
@@ -549,7 +549,12 @@ procedure g_GUI_LoadMenuPos();
 implementation
 
 uses
-  GL, GLExt, g_textures, g_sound, SysUtils,
+{$IFDEF USE_NANOGL}
+  nanoGL,
+{$ELSE}
+  GL, GLExt,
+{$ENDIF}
+  g_textures, g_sound, SysUtils,
   g_game, Math, StrUtils, g_player, g_options,
   g_map, g_weapons, xdynrec, wadreader;
 
@@ -2320,6 +2325,8 @@ begin
             end;
         end;
     end;
+
+  g_Touch_ShowKeyboard(FWindow.FActiveControl = Self);
 end;
 
 procedure TGUIEdit.SetText(Text: string);