Difference between revisions of "love.keyboard.setTextInput"

m
(Added documentation for 0.10.0's setTextInput(enable,x,y,w,h) variant)
Line 8: Line 8:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|boolean|enable|Whether text input events should be enabled.}}
 
{{param|boolean|enable|Whether text input events should be enabled.}}
 +
=== Returns ===
 +
Nothing.
 +
 +
== Function ==
 +
{{newin|[[0.10.0]]|0100|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
love.keyboard.setTextInput( enable, x, y, w, h )
 +
</source>
 +
=== Arguments ===
 +
{{param|boolean|enable|Whether text input events should be enabled.}}
 +
{{param|number|x|On-screen keyboard x position.}}
 +
{{param|number|y|On-screen keyboard y position.}}
 +
{{param|number|w|On-screen keyboard width.}}
 +
{{param|number|h|On-screen keyboard height.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 22:48, 8 March 2016

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.

Function

Synopsis

love.keyboard.setTextInput( enable )

Arguments

boolean enable
Whether text input events should be enabled.

Returns

Nothing.

Function

Available since LÖVE 0.10.0
This variant is not supported in earlier versions.

Synopsis

love.keyboard.setTextInput( enable, x, y, w, h )

Arguments

boolean enable
Whether text input events should be enabled.
number x
On-screen keyboard x position.
number y
On-screen keyboard y position.
number w
On-screen keyboard width.
number h
On-screen keyboard height.

Returns

Nothing.

See Also

Other Languages