Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Enables or disables text input events. It is enabled by default on Windows, Mac, and Linux, and disabled by default on iOS and Android.
On touch devices, this shows the system's native on-screen keyboard when it's enabled.
love.keyboard.setTextInput( enable )
boolean enable
Nothing.
Available since LÖVE 0.10.0 |
This variant is not supported in earlier versions. |
On iOS and Android this variant tells the OS that the specified rectangle is where text will show up in the game, which prevents the system on-screen keyboard from covering the text.
love.keyboard.setTextInput( enable, x, y, w, h )
boolean enable
number x
number y
number w
number h
Nothing.