Show the soft keyboard provided by Android without a text field

for pure text input for editing the name of the savegame.
This commit is contained in:
Bernhard Kaindl
2012-08-07 13:28:55 +02:00
parent cb96c4e85f
commit 267b9174eb
6 changed files with 40 additions and 1 deletions

View File

@@ -48,6 +48,8 @@
#include "vga256d.h"
#include "video.h"
#include "SDL_screenkeyboard.h"
#include <assert.h>
#include <ctype.h>
@@ -2398,7 +2400,9 @@ void JE_operation( JE_byte slot )
wait_noinput(false, true, false);
JE_barShade(VGAScreen, 65, 55, 255, 155);
#ifdef ANDROID
SDL_ANDROID_CallJavaTogglePlainAndroidSoftKeyboardInput();
#endif
bool quit = false;
while (!quit)
{
@@ -2510,6 +2514,9 @@ void JE_operation( JE_byte slot )
case SDLK_RETURN:
case SDLK_SPACE:
quit = true;
#ifdef ANDROID
SDL_ANDROID_CallJavaTogglePlainAndroidSoftKeyboardInput();
#endif
JE_saveGame(slot, stemp);
JE_playSampleNum(S_SELECT);
break;