From: Holger Schemel Date: Fri, 16 Nov 2018 07:53:57 +0000 (+0100) Subject: added showing virtual keyboard for playfield text input in editor (Android) X-Git-Tag: 4.1.2.0~97 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=0c3154757631b34c08d9808d979aab76774f7a33;p=rocksndiamonds.git added showing virtual keyboard for playfield text input in editor (Android) --- diff --git a/src/editor.c b/src/editor.c index 2bf5543c..33e9dae5 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12376,6 +12376,8 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) case TEXT_SETCURSOR: DrawEditorElement(last_sx, last_sy, Feld[lx][ly]); DrawAreaBorder(sx, sy, sx, sy); + StartTextInput(SX + sx * ed_tilesize, SY + sy * ed_tilesize, + ed_tilesize, ed_tilesize); last_sx = sx; last_sy = sy; break; @@ -12420,6 +12422,7 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) case TEXT_END: CopyLevelToUndoBuffer(UNDO_IMMEDIATE); DrawEditorElement(sx, sy, Feld[lx][ly]); + StopTextInput(); typing = FALSE; break;