Hey!
I am making a math game on love2d, that I would eventually release on android and ios. Having a full text keyboard just for numbers is not ideal, so how would i go about changing the mobile keyboard to the native number keyboard on ios and android?
Ideally it would only be a num keyboard when in-game, so other details could be entered as well. But if that's not possible, it could be a num keyboard all the time.
Cheers, Santeri
Changing the keyboard style in Android & iOS
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 19
- Joined: Tue Jan 14, 2020 5:04 pm
Re: Changing the keyboard style in Android & iOS
I'm just wondering - why not make you own virtual in-game keyboard?
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
-
- Prole
- Posts: 19
- Joined: Tue Jan 14, 2020 5:04 pm
Re: Changing the keyboard style in Android & iOS
Unfortunately SDL doesn't expose the API for this.KallioSanteri wrote: ↑Fri May 14, 2021 5:45 am Hey!
I am making a math game on love2d, that I would eventually release on android and ios. Having a full text keyboard just for numbers is not ideal, so how would i go about changing the mobile keyboard to the native number keyboard on ios and android?
Ideally it would only be a num keyboard when in-game, so other details could be entered as well. But if that's not possible, it could be a num keyboard all the time.
Cheers, Santeri
love.keyboard.setTextInput is basically thin wrapper around SDL_SetTextInputRect, so if SDL doesn't expose the keyboard mode, then LOVE can't.
Feel free to create feature request on SDL repository however.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests