How to show Android keyboard?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
padicao2010
Prole
Posts: 15
Joined: Wed Jan 15, 2014 8:38 am

How to show Android keyboard?

Post by padicao2010 »

How to activate the virtual keyboard?

I haven't find the API in wiki. Is is possible?
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: How to show Android keyboard?

Post by bobbyjones »

Love.keyboard.setTextInput iirc
padicao2010
Prole
Posts: 15
Joined: Wed Jan 15, 2014 8:38 am

Re: How to show Android keyboard?

Post by padicao2010 »

bobbyjones wrote:Love.keyboard.setTextInput iirc
Yes, that is it. Thanks.

It seems only it accepts English keyboard. I can't switch it.
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: How to show Android keyboard?

Post by bobbyjones »

What do you mean it only accepts English keyboard. It creates an English one?
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: How to show Android keyboard?

Post by darkfrei »

My try to implement the android keyboard input. Here must be love.keyboard.setTextInput( true ) and love.keyboard.setKeyRepeat(true)

However I have problem with "shifted" letters and letters on different from English keyboards.
Attachments
2021-01-02T14_23_13-Untitled.png
2021-01-02T14_23_13-Untitled.png (18.09 KiB) Viewed 5902 times
android-input-03.love
(678 Bytes) Downloaded 214 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: How to show Android keyboard?

Post by darkfrei »

Yes, shift is not supported, also symbols like + and (), where you press the shift to get the correct symbol.
Attachments
Screenshot_20210102-142903.png
Screenshot_20210102-142903.png (51.97 KiB) Viewed 5901 times
Screenshot_20210102-142948.png
Screenshot_20210102-142948.png (51.53 KiB) Viewed 5901 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 10 guests