Difference between revisions of "love.textedited"
(Created page) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
Called when the candidate text for an IME (Input Method Editor) has changed. | Called when the candidate text for an IME (Input Method Editor) has changed. | ||
− | The | + | The candidate text is not the final text that the user will eventually choose. Use [[love.textinput]] for that. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | love.textedited( text, | + | love.textedited( text, start, length ) |
</source> | </source> | ||
+ | |||
=== Arguments === | === Arguments === | ||
{{param|string|text|The UTF-8 encoded unicode candidate text.}} | {{param|string|text|The UTF-8 encoded unicode candidate text.}} | ||
Line 14: | Line 15: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
− | |||
− | |||
== See Also == | == See Also == | ||
Line 25: | Line 24: | ||
[[Category:Callbacks]] | [[Category:Callbacks]] | ||
{{#set:Description=Called when the candidate text for an IME has changed.}} | {{#set:Description=Called when the candidate text for an IME has changed.}} | ||
− | {{#set:Subcategory= | + | {{#set:Subcategory=Keyboard}} |
== Other Languages == | == Other Languages == | ||
{{i18n|love.textedited}} | {{i18n|love.textedited}} |
Latest revision as of 20:58, 20 November 2019
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Called when the candidate text for an IME (Input Method Editor) has changed.
The candidate text is not the final text that the user will eventually choose. Use love.textinput for that.
Function
Synopsis
love.textedited( text, start, length )
Arguments
string text
- The UTF-8 encoded unicode candidate text.
number start
- The start cursor of the selected candidate text.
number length
- The length of the selected candidate text. May be 0.
Returns
Nothing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info