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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user