Ren'Py android keyboard issues

obsessionau

Member
Game Developer
Sep 27, 2018
270
376
I just tried porting my game to my phone and I am having two issues with renpy.input.

1) When I get to a input screen the keyboard pops up straight away before I can even read what I am supposed to be inputting. Pressing the back button hides the keyboard, but then it just pops back up.

2) When I try to type in the password h0ta$$, everytime I get to the $ the line clears itself and so I just end up with $$.

In Ren'py is there anyway of telling the phone that this is an input box that should not be manipulated.
I managed to fix the second one by turning off the auto capitalise first character of sentence. But still not sure how to hide the keyboard.

So far have not had any other issues.
 
Last edited:

Rich

Old Fart
Modder
Donor
Respected User
Game Developer
Jun 25, 2017
2,566
7,381
Regarding #1, one possibility is not to use the vanilla "input" mechanism, but instead create a screen that includes an input screen element

This would allow you to position the input such that the Android keyboard doesn't overlap the input area.

No idea about #2.
 

the66

beware, the germans are cumming
Modder
Donor
Respected User
Jan 27, 2017
7,808
24,388
to position the vanilla input screen just add a style for touch screens.
Python:
style input_window:
    variant "touch"
    yalign .1
you can also use ypos. simply position the screen somewhere above the virtual keyboard.
 

obsessionau

Member
Game Developer
Sep 27, 2018
270
376
I will look into this. thanks!

I was going to see if adding a wait {w} at the end would work. But was unsure in what sequence the line would be processed.